mirror of
https://github.com/Aroy-Art/Aroy-Art-Site.git
synced 2024-12-26 20:24:23 +01:00
Updated Docker sheat sheet list & added image
This commit is contained in:
parent
aada0c3ed5
commit
26b7c16652
2 changed files with 32 additions and 1 deletions
Binary file not shown.
After Width: | Height: | Size: 111 KiB |
|
@ -1,14 +1,21 @@
|
||||||
+++
|
+++
|
||||||
title = "Docker Cheat Sheet"
|
title = "Docker Cheat Sheet"
|
||||||
#subtitle = "This is my Docker commands sheat sheet."
|
subtitle = "This is my Docker commands sheat sheet."
|
||||||
|
|
||||||
date = "2020-12-02"
|
date = "2020-12-02"
|
||||||
|
lastmod = "2020-12-16"
|
||||||
|
|
||||||
fragment = "content"
|
fragment = "content"
|
||||||
weight = 100
|
weight = 100
|
||||||
tags = ["docker", "cheat", "sheet"]
|
tags = ["docker", "cheat", "sheet"]
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
![Header Image](Image-Docker-Command-Cheat-Sheet.png)
|
||||||
|
|
||||||
# A list of docker commands
|
# A list of docker commands
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### List images
|
### List images
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
|
@ -26,8 +33,32 @@ docker images [OPTIONS] [REPOSITORY[:TAG]]
|
||||||
| `--no-trunc` | | Don’t truncate output |
|
| `--no-trunc` | | Don’t truncate output |
|
||||||
| `--quiet , -q` | | Only show numeric IDs |
|
| `--quiet , -q` | | Only show numeric IDs |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Remove one or more containers
|
### Remove one or more containers
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
docker rm [OPTIONS] CONTAINER [CONTAINER...]
|
docker rm [OPTIONS] CONTAINER [CONTAINER...]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Options
|
||||||
|
|
||||||
|
| Name, shorthand | Default | Description |
|
||||||
|
|:----------------|:-------:| ------------------------------------------------------- |
|
||||||
|
|`--force , -f` | | Force the removal of a running container (uses SIGKILL) |
|
||||||
|
|`--link , -l` | | Remove the specified link |
|
||||||
|
|`--volumes , -v` | | Remove anonymous volumes associated with the container |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Stop one or more running containers
|
||||||
|
|
||||||
|
``` Bash
|
||||||
|
docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Options
|
||||||
|
|
||||||
|
| Name, shorthand | Default | Description |
|
||||||
|
|:----------------|:-------:| ------------------------------------------- |
|
||||||
|
|`--time , -t` | 10 | Seconds to wait for stop before killing it. |
|
||||||
|
|
Loading…
Reference in a new issue