What is docker –rm option

On Docker, –rm option means automatically remove the container when it exits. $ docker run –rm <container_id> Done 🙂 Please read on to understand more about –rm. 1. Remove a container On Docker, the container is an instance of an image, and we can create multiple containers from an image. If the container is exited …

Read more

How to list containers in Docker?

In Docker, we can use docker ps to show all running containers, docker ps -a to show all running and stopped containers. Here are some of the commonly used examples: Terminal # common $ docker ps // show only running containers $ docker ps -a // show all containers (running and stopped or exited) # …

Read more