Error response from daemon: oci runtime error: container with id exists
序
常见问题之Docker——Error response from daemon: oci runtime error: container with id exists
错误
Error response from daemon: oci runtime error: container with id exists
造成原因:
之前docker容器关闭时没有
解决方案:
删除原有运行时产生的文件,再重新运行所有容器
rm -rf /run/runc/*
docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
补充命令:关闭所有的容器命令
docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)