docker: add docker images example (#7567)
This commit is contained in:
@@ -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}}`
|
||||
|
Reference in New Issue
Block a user