Updated Docker sheat sheet list & added image

This commit is contained in:
Aroy 2020-12-16 19:03:33 +01:00
parent aada0c3ed5
commit 26b7c16652
2 changed files with 32 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

View file

@ -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` | | Dont truncate output | | `--no-trunc` | | Dont 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. |