NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.23k stars 650 forks source link

[debug]docker配置文件问题 #229

Closed cdnflyint closed 3 years ago

cdnflyint commented 3 years ago

docker挂载配置文件为/path/to/config.json 此/path/to/config.json 为file属性 但是众所周知 file属性是没法编辑的 只能读. 所以就导致无法把自定义配置写进去 如果更改/path/to/config.json的文件属性 就会导致docker无法启动

Error response from daemon: Cannot restart container c86df8e5a9ad: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/path/to/config.json" to rootfs at "/var/lib/docker/overlay2/413e5cd62cdb654463687a0498563c53e65d2150c19b816acc44930714e7ec56/merged/config.json" 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

cdnflyint commented 3 years ago

1