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?

  • How to know if docker is already logged in to a docker registry server
  • Postgresql - authentication failed in Docker
  • PHPStorm, Docker and debugging
  • Docker loading kernel modules
  • Connect Docker Container port to server's apache port (odoo Container)
  • Docker copy file from container to host with file permissions & ownership intact
  • Thank you in advance.

  • Assign network aliases dynamically on global deployed services in a docker stack
  • Viewing all run parameters of a docker container
  • How to run rails app in docker container with nginx running on host machine?
  • Using docker on Mac. Is it possible to start docker daemon using docker-machine and pass in arguments?
  • Gitlab always shows “No container image repositories in Container Registry for this project.”
  • Docker. Connect from one container to another container with mysql
  • 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.