From 68d5271dade3a1d793e5567dc9d1b966fbb1ce67 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Fri, 27 Dec 2024 12:28:33 +0100 Subject: [PATCH 1/3] Rename docker cheat sheet post and restructure content --- content/blog/2020-12-02-docker-cheat-sheet.md | 56 ++----------------- 1 file changed, 4 insertions(+), 52 deletions(-) diff --git a/content/blog/2020-12-02-docker-cheat-sheet.md b/content/blog/2020-12-02-docker-cheat-sheet.md index 8121c38..e65209a 100644 --- a/content/blog/2020-12-02-docker-cheat-sheet.md +++ b/content/blog/2020-12-02-docker-cheat-sheet.md @@ -1,8 +1,8 @@ --- -title: Docker & Compose Cheat Sheet +title: Goodies to know for Docker & Docker-Compose description: This is my list of use full Docker commands. -date: 2020-12-02T00:00:00.000Z -lastmod: 2024-09-11T21:04:52.148Z +date: 2024-11-06T21:05:38.188Z +lastmod: 2024-12-27T11:26:27.203Z image: /images/blog/Image-Docker-Command-Cheat-Sheet.png tags: - Cheat-Sheet @@ -13,56 +13,8 @@ slug: docker-compose-cheat-sheet draft: true --- -# A list of docker commands +This is the colleton of useful knowledge this kitty has gathered for Docker and Docker-Compose over a long time. ---- - -### List images - -```Shell -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 - -```Shell -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 - -```Shell -docker stop [OPTIONS] CONTAINER [CONTAINER...] -``` - -#### Options - -| Name, shorthand | Default | Description | -|:----------------|:-------:| ------------------------------------------- | -|`--time, -t` | 10 | Seconds to wait for stop before killing it. | ## How to cleanup (unused) resources From 6a8bf99489437279f8f453b1999fe33b846c5607 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Fri, 27 Dec 2024 12:30:01 +0100 Subject: [PATCH 2/3] Add toc to docker cheat sheet post --- content/blog/2020-12-02-docker-cheat-sheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/blog/2020-12-02-docker-cheat-sheet.md b/content/blog/2020-12-02-docker-cheat-sheet.md index e65209a..47dbfa3 100644 --- a/content/blog/2020-12-02-docker-cheat-sheet.md +++ b/content/blog/2020-12-02-docker-cheat-sheet.md @@ -15,6 +15,7 @@ draft: true This is the colleton of useful knowledge this kitty has gathered for Docker and Docker-Compose over a long time. +{{< toc >}} ## How to cleanup (unused) resources From f0e4702bac94f9526b1fbd83e08b3daa34717112 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Fri, 27 Dec 2024 12:31:08 +0100 Subject: [PATCH 3/3] Add conclution to docker cheat sheet post --- content/blog/2020-12-02-docker-cheat-sheet.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/blog/2020-12-02-docker-cheat-sheet.md b/content/blog/2020-12-02-docker-cheat-sheet.md index 47dbfa3..9d23d5e 100644 --- a/content/blog/2020-12-02-docker-cheat-sheet.md +++ b/content/blog/2020-12-02-docker-cheat-sheet.md @@ -78,3 +78,9 @@ or ```Shell docker network ls | awk '$3 == "bridge" && $2 != "bridge" { print $1 }' ``` + +## Conclusion + +First of thanks for reading this. + +I hope this has been helpful and if you have any questions, suggestions or something i may have missed, please let me know.