Docker Cookbook: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== View all running containers == <syntaxhighlight lang="bash"> $ docker ps </syntaxhighlight> == Managing images == List all images: <ref>[https://www.digitalocean.com/com...") |
No edit summary |
||
| Line 3: | Line 3: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ docker ps | $ docker ps | ||
</syntaxhighlight> | |||
== Stopping containers == | |||
Stop all containers | |||
<syntaxhighlight lang="bash"> | |||
$ docker stop | |||
</syntaxhighlight> | |||
Stop a specific container by id | |||
<syntaxhighlight lang="bash"> | |||
$ docker stop [CONTAINER_ID] | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 04:29, 22 May 2018
View all running containers
$ docker ps
Stopping containers
Stop all containers
$ docker stop
Stop a specific container by id
$ docker stop [CONTAINER_ID]
Managing images
List all images: [1]
$ docker images
Viewing files in a container
$ docker exec -t -i mycontainer /bin/bash
Exit the connection and return to the regular local filesystem command prompt with exit.
See also
- ↑ How To Remove Docker Images, Containers and Volumes - Digital Ocean