Skip to content

[Solved] conflict: unable to remove repository reference in Docker

If you get the following error while trying to delete an image in Docker:

Error response from daemon: conflict: unable to remove repository reference "some-image" (must force) - container 3ab4c18d2219 is using its referenced image 133c1827439a

You may already have tried looking for the container, but it seems to not exist!

How to Remove the Docker Container and Image

This usually means that the Docker container has already terminated, and is why you won’t see it running.

Luckily, this issue is easy to solve.

docker container rm 3ab4c18d2219 docker image rm some-image
Code language: Bash (bash)

Not able to identify the container?

If you are not able to find the container, you can use the following command to find all containers, not only the ones still running:

docker container ls -a
Code language: Bash (bash)

See also  Cant start your browser?
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x