docker: add docker images example (#7567)

This commit is contained in:
Raizo62
2021-12-30 13:37:01 +01:00
committed by GitHub
parent 491f0fcefb
commit f126048f03
3 changed files with 15 additions and 15 deletions

View File

@@ -4,13 +4,9 @@
> Some subcommands such as `docker run` have their own usage documentation.
> More information: <https://docs.docker.com/engine/reference/commandline/cli/>.
- List currently running docker containers:
`docker ps`
- List all docker containers (running and stopped):
`docker ps -a`
`docker ps --all`
- Start a container from an image, with a custom name:
@@ -24,6 +20,10 @@
`docker pull {{image}}`
- Display the list of already downloaded images:
`docker images`
- Open a shell inside a running container:
`docker exec -it {{container_name}} {{sh}}`