This message was deleted.
# rancher-desktop
a
This message was deleted.
b
You probably wouldn't be able to because they are being used by running containers.
p
actually I can do it ith option "-f". But not sure if it is not corrupt docker inside rancher desktop
b
I don't think you can force delete an image with
-f
if a container is running with that image. I just tried to delete
rancher/mirrored-pause
on my machine and was unable to.
p
but if I stop all the containers , then I can delete containers via 'docker stop $(docker ps -aq)' and then docker rmi $(docker images -aq) -f
b
If an image doesn't exist and the system needs it, it will pull it.
p
ah, that's exactly what I wanted to hear ) Thank you!
b
I should say that if you try to stop all the containers, there may be other issues.
p
Which kind of issue(s) do you mean?
q
What are you trying to achieve?
393 Views