skip to Main Content

Error response from daemon: conflict: unable to delete 529072250ccc (cannot be forced) – image is being used by running container 5da200b36c1e

How I delete docker image ?

docker ps is Nothing.

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

But I can’t delete image.
Commands I have tried

docker kill 5da200b36c1e
docker rmi -f 529072250ccc

After doing this, the image disappears once but comes back again.

Or sometimes the IMAGE does not disappear.

enter image description here

2

Answers


  1. Check all available containers with docker ps -a and see whether the mentioned container with the ID is there. Have a look on its status.

    You can try either removing it using docker rm 5da200b36c1e or kill it using docker kill 5da200b36c1e.

    Once it is done, check whether the container is still listed with docker ps -a and if so check the status. You may try deleting the image again after this.

    Login or Signup to reply.
  2. You have to stop the container first:

    docker stop 5da200b36c1e
    

    and then remove the image:

     docker rmi -f 529072250ccc 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search