docker 镜像重启报错问题处理


docker 报错

Error response from daemon: failed to listen to abstract unix socket 
"/containerd-shim/moby/280f5b5816c214cd414d342a6f1caa507717784a3e4330f6b62f13b9011668a5/shim.sock": 
listen unix /containerd-shim/moby/280f5b5816c214cd414d342a6f1caa507717784a3e4330f6b62f13b9011668a5/shim.sock: bind: address already in use: unknown
Error: failed to start containers: php_container

执行
netstat -lnp

获取这个id 280f5b5816c214cd414d342a6f1caa507717784a3e4330f6b62f13b9011668a5 的所在进程id

将这个进程kill掉 

继续docker start 

报错
Error response from daemon: OCI runtime create failed: container with id exists: 280f5b5816c214cd414d342a6f1caa507717784a3e4330f6b62f13b9011668a5: unknown
Error: failed to start containers: php_container

cd 到目录 /run/docker/runtime-runc/moby

将这个id所在的目录全删除
rm -rf ./280f5b5816c214cd414d342a6f1caa507717784a3e4330f6b62f13b9011668a5

问题得到处理

你可能感兴趣的:(docker,容器,运维)