Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

strange docker error when stop and starting a container

Tags:

docker

coreos

I have been stopping and starting this container with no problem. Then suddenly I get this strange error.

see history of commands below

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
like image 325
jcalloway Avatar asked Sep 05 '14 00:09

jcalloway


1 Answers

It is a issue detailed here. In the meanwhile you can workaround like this:

sudo systemctl stop docker-241d05c8d14f0b9f18d4f8647ac76a27097354aab5d92f1aaa6c9789a85e6e3d.scope

then start yout container

like image 122
Alex Proca Avatar answered Oct 22 '22 05:10

Alex Proca