https://rancher.com/ logo
Title
p

prehistoric-state-31789

02/09/2023, 3:48 PM
Hello! Could somebody suggest if I can delete "default" images from Rancher Desktop? Does it break something in Rancher desktop or docker?
b

big-hydrogen-97240

02/09/2023, 3:53 PM
You probably wouldn't be able to because they are being used by running containers.
p

prehistoric-state-31789

02/09/2023, 5:10 PM
actually I can do it ith option "-f". But not sure if it is not corrupt docker inside rancher desktop
b

big-hydrogen-97240

02/09/2023, 5:12 PM
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

prehistoric-state-31789

02/09/2023, 5:40 PM
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

big-hydrogen-97240

02/09/2023, 5:41 PM
If an image doesn't exist and the system needs it, it will pull it.
p

prehistoric-state-31789

02/09/2023, 5:42 PM
ah, that's exactly what I wanted to hear ) Thank you!
b

big-hydrogen-97240

02/09/2023, 5:46 PM
I should say that if you try to stop all the containers, there may be other issues.
p

prehistoric-state-31789

02/09/2023, 5:53 PM
Which kind of issue(s) do you mean?
q

quick-keyboard-83126

02/10/2023, 7:44 PM
What are you trying to achieve?