This is a draft cheat sheet. It is a work in progress and is not finished yet.
docker container run <container> <command>
--interactive |
--detach |
--tty |
--rm |
-e |
Docker keeps a container running as long as the process it started inside the container is running. Docker does not delete resource by default, so the container still exists in the Exited state.
|
|
docker container ls
List the running containers.
docker container top <container_name>
Show the processes running inside the container. |
docker exec <container_name>
Run a command inside the container.
|
|
docker container logs <container_name>
Show the logs from the container. |
|