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?

  • cannot ADD file in current directory or in the directory with full path
  • Python inside Docker cannot print unicode without --tty
  • Creating MongoDB image error from Docker official tutorial
  • How to suppress marathon accessing logs in “docker logs”?
  • Running torch on docker with CUDA says module 'cutorch' not found
  • Passing Different Arguments When Running Docker Image Multiple Times
  • Thank you in advance.

  • Correct way to access url/api endpoints of other docker containers in the same docker network?
  • ceph docker starting OSD Failed to start Ceph disk activation: /dev/sdb1
  • What does “build artifact” mean in the context of a dockerized development environment?
  • Installing Jenkins plugin (mercurial) in Docker shows in plugins folder but not in Jenkins itself
  • Deploy to JBoss from Docker Jenkins Container
  • How to configure /etc/hosts to test local Docker setup
  • 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.