docker容器无法启动
source link: https://www.wencst.com/archives/2336
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker容器无法启动
centos7
docker 1.13.1
docker-compose 1.10.0
1.在centos7上执行ptrace命令,发现没有
2.执行yum install ptrace,发现没有安装包
3.执行yum update
over。。。
1.yum update发现有608个安装包,这里就不一一列举
2.发现docker的网站无法访问(以为是update过程中可能升级了防火墙,所以没有在意)
3.update结束后,发现docker服务全部Exited (137) 7 minutes ago
1.尝试docker start
Error response from daemon: oci runtime error: container with id exists: 93a12556cxxxxx
Error: failed to start containers: xxxxx
2.尝试docker-compose重新启动
docker-compose up -d
Starting xxxxx
ERROR: for mysql Cannot start service xxx: oci runtime error: container with id exists: 941a391exxxxx
ERROR: Encountered errors while bringing up the project.
3.尝试关闭docker-compose服务,docker-compose stop,无报错,但无效
4.尝试寻找docker服务运行态文件,并删除
cd /run/runc
rm -rf ./*
5.重启docker服务,docker start正常
6.重启docker-compose服务,docker-compose up -d正常
如果文章对您有用,扫一下支付宝的红包,不胜感激!
欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)
Leave a Reply Cancel reply
You must be logged in to post a comment.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK