docker 啓動報錯--工作中遇到的問題

問題描述

docker 啓動 frps 容器的時候報錯:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/etc/frp/frps.ini\\\" to rootfs \\\"/var/lib/docker/overlay2/8ea0d801cf4a1be9f9aeb5e23bcc38cf59e07d3ad441c84a95976a5bc9f921ed/merged\\\" at \\\"/var/lib/docker/overlay2/8ea0d801cf4a1be9f9aeb5e23bcc38cf59e07d3ad441c84a95976a5bc9f921ed/merged/etc/frp/frps.ini\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

原因

/etc/frps/frps.init caused "not a directory
初次拉取的時候把 /etc/frps/frps.init 新建成了目錄

解決辦法

刪除目錄、新建文件

[root@izuf64gdegum84eku07pljz ~]# rm /etc/frp/frps.ini/ -rf
[root@izuf64gdegum84eku07pljz ~]# ll /etc/frp/
total 0
[root@izuf64gdegum84eku07pljz ~]# touch /etc/frp/frps.ini
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章