Docker error response from daemon: Conflict. already in use by container

I use docker to start Quantum GIS, following the instructions I found here: https://registry.hub.docker.com/u/kartoza/qgis-desktop/

Everything worked fine until the last week when I started receiving this error message: Error response from daemon: Conflict. The name "qgis-desktop-2-4" is already in use by container 235566ae17b8. You have to delete (or rename) that container to be able to reuse that name. Error response from daemon: Conflict. The name "qgis-desktop-2-4" is already in use by container 235566ae17b8. You have to delete (or rename) that container to be able to reuse that name.

I'm not quite sure what this means, despite looking for clues in this forum. I have not changed anything before and successfully launched the container with this command:

 sudo docker run --rm --name="qgis-desktop-2-4" -i -t -v ${HOME}:/home/${USER} -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY kartoza/qgis-desktop:latest 

Any ideas how I can fix this?

thank

Marty

+42
linux docker ubuntu
Jul 28 '15 at 12:19
source share
1 answer

It looks like a container named qgis-desktop-2-4 already exists on the system. You can check the output of the command below to confirm whether it really exists:

 $ docker ps -a 

The last column in the command output file for names.

If the container exists, delete it using:

 $ docker rm qgis-desktop-2-4 

or forced

 $ docker rm -f qgis-desktop-2-4 

And then try creating a new container. Hope this helps!

+76
Jul 28 '15 at 12:48
source share



All Articles