From a675eae4abdda2bb2b584af7943ce59b6b2a3424 Mon Sep 17 00:00:00 2001 From: Aroy-Art <39088602+Aroy-Art@users.noreply.github.com> Date: Tue, 15 Dec 2020 12:36:04 +0100 Subject: [PATCH] Added post Docker Cheat Sheet --- content/blog/docker-cheat-sheet/content.md | 33 ++++++++++++++++++++++ content/blog/docker-cheat-sheet/index.md | 5 ++++ 2 files changed, 38 insertions(+) create mode 100644 content/blog/docker-cheat-sheet/content.md create mode 100644 content/blog/docker-cheat-sheet/index.md diff --git a/content/blog/docker-cheat-sheet/content.md b/content/blog/docker-cheat-sheet/content.md new file mode 100644 index 0000000..b227e22 --- /dev/null +++ b/content/blog/docker-cheat-sheet/content.md @@ -0,0 +1,33 @@ ++++ +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` | | Don’t truncate output | +| `--quiet , -q` | | Only show numeric IDs | + +### Remove one or more containers + +``` bash +docker rm [OPTIONS] CONTAINER [CONTAINER...] +``` diff --git a/content/blog/docker-cheat-sheet/index.md b/content/blog/docker-cheat-sheet/index.md new file mode 100644 index 0000000..3406b0f --- /dev/null +++ b/content/blog/docker-cheat-sheet/index.md @@ -0,0 +1,5 @@ ++++ +title = "Docker Cheat Sheet" +subtitle = "This is my Docker commands sheat sheet." +date = "2020-12-02" ++++ \ No newline at end of file