一次奇怪的Docker Daemon Error
前言
环境:
1 | cat /etc/centos-release |
问题出现
用ansible安装部署docker时发现有容器一直起不来。安装的docker daemon是按docker官网https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-docker-ce 安装的,然后log发现报错Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error
。
排查
搜索查看issue ,发现是安装的docker-ce版本太新!而centos太旧,Centos7.1选择docker-ce-17.06.3.ce这个版本可用,17.12还是太新!
1 | docker info |
措施,其他问题再现
卸载docker-ce, 重新安装。然后发现容器还是起不来!
尝试删除/var/lib/docker, 报错
1 | error: driver \"devicemapper\" failed to remove root filesystem for 6f009dff997d9fe3f19c736d6dd662d7ff55cea2ec04ac5bba287b83684cac5b: remove /var/lib/docker/devicemapper/mnt/0efe8e6bc86a2ff1e1877979275c36d119995043ce231aeed661c15d26873692: device or resource busy |
解决
看看到底是mount到其它什么地方了
1 | find /proc/*/mounts | xargs grep 0efe8e6bc86a2ff1e187797927 |
- Post title:一次奇怪的Docker Daemon Error
- Post author:Kopei
- Create time:2018-01-18 00:00:00
- Post link:https://kopei.github.io/2018/01/17/docker-2018-01-18-strange-docker-error/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments