gpt4 book ai didi

docker - 停止和启动容器时出现奇怪的 docker 错误

转载 作者:IT老高 更新时间:2023-10-28 12:47:26 30 4
gpt4 key购买 nike

我一直在停止和启动这个容器,没有任何问题。然后突然我得到这个奇怪的错误。

查看下面的命令历史记录

core@ip-10-32-251-200 /vol/jenkins/war/WEB-INF/lib $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
241d05c8d14f joshuacalloway/jenkins:latest "/usr/bin/supervisor 5 weeks ago Up 6 days 0.0.0.0:80->8080/tcp jenkins
core@ip-10-32-251-200 /vol/jenkins/war/WEB-INF/lib $ docker stop 241
241
core@ip-10-32-251-200 /vol/jenkins/war/WEB-INF/lib $ docker start 241
241
core@ip-10-32-251-200 /vol/jenkins/war/WEB-INF/lib $ docker stop 241
241
core@ip-10-32-251-200 /vol/jenkins/war/WEB-INF/lib $ docker start 241
Error response from daemon: Cannot start container 241: Unit docker-241d05c8d14f0b9f18d4f8647ac76a27097354aab5d92f1aaa6c9789a85e6e3d.scope already exists.
2014/09/05 00:27:39 Error: failed to start one or more containers
core@ip-10-32-251-200 /vol/jenkins/war/WEB-INF/lib $ docker start 241
Error response from daemon: Cannot start container 241: Unit docker-241d05c8d14f0b9f18d4f8647ac76a27097354aab5d92f1aaa6c9789a85e6e3d.scope already exists.
2014/09/05 00:27:47 Error: failed to start one or more containers

最佳答案

这是一个问题 detailed here .同时,您可以像这样解决方法:

sudo systemctl stop docker-241d05c8d14f0b9f18d4f8647ac76a27097354aab5d92f1aaa6c9789a85e6e3d.scope

然后启动你的容器

关于docker - 停止和启动容器时出现奇怪的 docker 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25676954/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com