docker: Error: failed to remove one or more images

I am not able to remove this image docker run -p 8080:80 bgruening/galaxy-stable

$ sudo docker ps -a -q

$ sudo docker rmi 52b492693f21
Error response from daemon: No such image: 52b492693f21
FATA[0000] Error: failed to remove one or more images 

How can I remove this image?

  • Docker echo to /etc/hosts not working
  • Docker can't expose mesos port 5050
  • Error connecting to python server running in boot2docker (centos container | Windows 7.1 host)
  • Docker Ignores limits.conf (trying to solve “too many open files” error)
  • Hangs on run and exits only with CTRL + C
  • Open a WebSocket connexion from a docker container to another (able to ping container in cli but not via ws)
  • Thank you in advance.

  • error: unexpected end of file (expecting “do”) for shell script in Dockerfile
  • Should Fig be on inside of Vagrant VM or outside for OSX?
  • Docker (compose) send to daemon mode without restart
  • New to docker, is it possible to protect my source code and add permissions?
  • How do I deploy this docker app on digital ocean?
  • mount /var/log in docker-compose
  • 3 Solutions collect form web for “docker: Error: failed to remove one or more images”

    You are listing the containers and trying to remove a container. Use docker images to list all the images and remove it with docker rmi IMAGEID with the proper id. If your intention is remove a container, not an image, use docker rm CONTAINERID

    run the wrong command to list docker images, it should be:

    docker images

    then you should be fine to remove the images with docker rmi

    But before to do that, make sure, the related containers all cleaned already.

    docker ps -a 
    docker rm -f XXXXXX  # -f means force removed if some of them are still in run mode.

    In your case, I think that you want to stop and remove a container after you run it docker run -p 8080:80 bgruening/galaxy-stable

    So you should run 2 commands below:

    sudo docker stop 52b492693f21
    sudo docker rm 52b492693f21

    If you need to remove a image, you should use commands docker images to list all images, and docker rmi to remove a image.
    Hope it helps

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.