重启docker服务后,容器启动报错:Error response from daemon: id already in use

解决

找到容器进程,然后干掉他,重新启动容器

root@UGREEN-3822:~# ps -ef |grep 7e0d91c3e851
root      3766     1  0 00:21 ?        00:00:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 7e0d91c3e8513c706244b543d2e563850972fdb41ec1dbf8cd6c375d1fef3ce8 -address /var/run/docker/containerd/containerd.sock
root      3882 15512  0 00:32 pts/1    00:00:00 grep 7e0d91c3e851
root@UGREEN-3822:~# kill -9 3766
root@UGREEN-3822:~# docker start 7e0d91c3e851
7e0d91c3e851
posted @ 2024-06-20 00:36  Tarzen  阅读(168)  评论(0编辑  收藏  举报