One - One Code All

Blog Content

Docker无法启动容器时如何修改配置

容器化   2017-12-13 19:39:21

docker容器启动失败,或者反复重启,修改配置文件或者项目文件时,如果处理?


1. 修改docker容器中的配置信息(一般默认目录是:/var/lib/docker/overlay/),那只要找到这个配置文件,修改后重新启动。


2. 使用docker cp命令,把docker容器中的配置文件复制到主机中来,然后修改完后再复制到docker容器中去。



上一篇:Alpine镜像中Gnu Libc的安装及设定方法
下一篇:CentOS 6.5 安装 Kong0.14

The minute you think of giving up, think of the reason why you held on so long.