#11 Docker Tutorial | Temporary Container

Published: 01 January 1970
on channel: One Minute Notes
202
11

Docker playlist
   • Playlist  

How to autoremove docker container?
How to use --rm flag?
How to create temporary containers?



Running containers with --rm flag is good for those containers that you use for very short while just to accomplish something, e.g., compile your application inside a container, or just testing something that it works, and then you are know its a short lived container and you tell your Docker daemon that once its done running, erase everything related to it and save the disk space.


$ docker run --rm -it ubuntu
(when container is stopped, it will just execute rm command & remove container from database)


#docker #container #devops


Watch video #11 Docker Tutorial | Temporary Container online without registration, duration hours minute second in high quality. This video was added by user One Minute Notes 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 202 once and liked it 11 people.