docker-compose安装的harbor报错,docker容器全部退出,且无法通过docker-compose up -d启动

2024-01-20 10:11:55 浏览数 (1)

使用kubekey安装harbor服务,然后因为其他人误操作导致所有docker容器全部退出了,然后在/opt/harbor目录下执行docker-compose up -d也无法启动harbor服务,并报下面异常信息:

WARN[0000] Found orphan containers ([trivy-adapter notary-server notary-signer chartmuseum]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.  Error response from daemon: No such container: cb693a61d40df8245ac05fb0c7e7a0eb5e32850a7e269c03e795db8776729733

出现上述问题,笔者最后通过执行

systemctl restart docker

 指令重启docker后,然后再执行下面的指令就把harbor服务启动起来了

docker-compose up -d

0 人点赞