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.
2
Answers
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 usingdocker 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.You have to stop the container first:
and then remove the image: