启动docker实例时报错docker container state OCI runtime create failed: container with id exists:unknown

docker container state OCI runtime create failed: container with id exists:unknown

原因是在linux中的/etc/rc.local中添加了以下文件

sudo docker start e63854a6b21f //oracle
sudo docker start b37331382099 //mysql
sudo docker start 5e7309daaa45 //mongodb

因为不存在这几个容器,所以报错,重启docker服务没有用,将containerId容器id修改后重启服务器后,再次启动容器正常

查看/var/log/messages

time="2020-01-12T21:38:27.873627837-05:00" level=info msg="Docker daemon" commit=6a30dfc graphdriver(s)=overlay2 version=19.03.2
Jan 12 21:38:27 localhost dockerd: time="2020-01-12T21:38:27.873859142-05:00" level=info msg="Daemon has completed initialization"
Jan 12 21:38:27 localhost dockerd: time="2020-01-12T21:38:27.964932795-05:00" level=info msg="API listen on /var/run/docker.sock"
Jan 12 21:38:27 localhost systemd: Started Docker Application Container Engine.
Jan 12 21:38:28 localhost kernel: docker0: port 1(veth757a9cb) entered blocking state
Jan 12 21:38:28 localhost kernel: docker0: port 1(veth757a9cb) entered disabled state
Jan 12 21:38:28 localhost kernel: device veth757a9cb entered promiscuous mode
Jan 12 21:38:28 localhost kernel: IPv6: ADDRCONF(NETDEV_UP): veth757a9cb: link is not ready

发布了509 篇原创文章 · 获赞 21 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/qq_34412985/article/details/103955315
今日推荐