Sometimes when we want to remove a docker image even if some container is using that image.

And we get the below error:

Error response from daemon: conflict: unable to remove repository reference "debian" (must force) - container 10adb9da8f8b is using its referenced image f643c72bc252

Forcing the removal of an image:

We could force docker to remove that image using the "--force" option like below:

We could also use "-f" instead of "--force".


The "-f" option uses a SIGKILL signal to stop the container.

Brando Sabatini and Ikbal C ©. Powered by Blogger.