mirror of
https://github.com/Aroy-Art/Aroy-Art-Site.git
synced 2024-12-26 21:04:23 +01:00
Add: docker cheat sheet post
This commit is contained in:
parent
5bd434a3d5
commit
1cb71c173c
2 changed files with 61 additions and 0 deletions
61
content/blog/docker-cheat-sheet.md
Normal file
61
content/blog/docker-cheat-sheet.md
Normal file
|
@ -0,0 +1,61 @@
|
|||
---
|
||||
title: Docker Cheat Sheet
|
||||
date: 2020-12-02T00:00:00.000Z
|
||||
lastmod: '2021-12-31T16:03:40.561Z'
|
||||
image: /images/blog/Image-Docker-Command-Cheat-Sheet.png
|
||||
description: This is my Docker commands cheat sheet.
|
||||
tags:
|
||||
- docker
|
||||
- cheat-sheet
|
||||
---
|
||||
|
||||
# A list of docker commands
|
||||
|
||||
---
|
||||
|
||||
### List images
|
||||
|
||||
```sh
|
||||
docker images [OPTIONS] [REPOSITORY[:TAG]]
|
||||
```
|
||||
|
||||
#### Options
|
||||
|
||||
| Name, shorthand | Default | Description |
|
||||
| :-------------- | :------:| --------------------------------------------------- |
|
||||
| `--all , -a` | | Show all images (default hides intermediate images) |
|
||||
| `--digests` | | Show digests |
|
||||
| `--filter , -f` | | Filter output based on conditions provided |
|
||||
| `--format` | | Pretty-print images using a Go template |
|
||||
| `--no-trunc` | | Don’t truncate output |
|
||||
| `--quiet , -q` | | Only show numeric IDs |
|
||||
|
||||
---
|
||||
|
||||
### Remove one or more containers
|
||||
|
||||
```sh
|
||||
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
|
||||
|
||||
```sh
|
||||
docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
||||
```
|
||||
|
||||
#### Options
|
||||
|
||||
| Name, shorthand | Default | Description |
|
||||
|:----------------|:-------:| ------------------------------------------- |
|
||||
|`--time , -t` | 10 | Seconds to wait for stop before killing it. |
|
BIN
static/images/blog/Image-Docker-Command-Cheat-Sheet.png
Normal file
BIN
static/images/blog/Image-Docker-Command-Cheat-Sheet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 KiB |
Loading…
Reference in a new issue