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

What does --rm do in docker run --rm my-app?

Explanation

Great for one-off commands and tests: no pile of stopped containers. Data in named volumes is kept.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 32

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