What is the --rm flag doing

0 votes

I'm new to Docker and don't yet have a mental representation of how it works. I am a complete novice.

The --rm flag has been included in all of the samples I've looked at, such as

docker run -it --rm ...
docker container run -it --rm ...

Why does the --rm flag appear in these commands? Why would I remove a container that I had gone to the trouble of setting up or downloading with the nice content in it? I'd like to save it in case I need it again.

Apr 29, 2022 in Docker by Abhijeet
• 180 points

edited 5 days ago 11 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP