Aroy-Art-Site/content/blog/docker-cheat-sheet/content.md
2020-12-15 12:36:04 +01:00

33 lines
1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

+++
title = "Docker Cheat Sheet"
#subtitle = "This is my Docker commands sheat sheet."
date = "2020-12-02"
fragment = "content"
weight = 100
tags = ["docker", "cheat", "sheet"]
+++
# A list of docker commands
### List images
``` bash
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` | | Dont truncate output |
| `--quiet , -q` | | Only show numeric IDs |
### Remove one or more containers
``` bash
docker rm [OPTIONS] CONTAINER [CONTAINER...]
```