Docker and CI/CD · Junior · Question 29 of 75

What is the difference between docker rm and docker rmi?

Explanation

An image can't be removed while a container (even a stopped one) uses it. docker system prune cleans unused containers, networks, images and build cache.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 29

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz