Compare commits

..

No commits in common. "d8071c0975875dbb52dac97311510158456760a5" and "f0e4702bac94f9526b1fbd83e08b3daa34717112" have entirely different histories.

View file

@ -2,7 +2,7 @@
title: Goodies to know for Docker & Docker-Compose
description: This is my list of use full Docker commands.
date: 2024-11-06T21:05:38.188Z
lastmod: 2024-12-27T11:32:00.290Z
lastmod: 2024-12-27T11:26:27.203Z
image: /images/blog/Image-Docker-Command-Cheat-Sheet.png
tags:
- Cheat-Sheet
@ -10,7 +10,7 @@ tags:
- Docker
- Linux
slug: docker-compose-cheat-sheet
draft: false
draft: true
---
This is the colleton of useful knowledge this kitty has gathered for Docker and Docker-Compose over a long time.
@ -43,18 +43,11 @@ And to purge the docker system ([Docker Docs](https://docs.docker.com/engine/ref
docker system prune
```
{{< alert theme="info">}}
For some users the `docker system prune` command dosen't delete the build cache so if thats the case that a look at the [Build system leftovers](#build-system-leftovers) section
{{< /alert>}}
### The old way (Docker < 1.13)
#### Delete Volumes
{{< alert theme="info" >}}
For more info and a complete shell script see:
https://github.com/chadoe/docker-cleanup-volumes
{{< /alert >}}
{{< alert theme="info" >}} // see: https://github.com/chadoe/docker-cleanup-volumes {{< /alert >}}
```Shell
docker volume rm $(docker volume ls -qf dangling=true)
@ -86,20 +79,6 @@ or
docker network ls | awk '$3 == "bridge" && $2 != "bridge" { print $1 }'
```
## Build system leftovers
If your system is also used for building images you might have a look at cleaning up garbage created by the builders using:
```Shell
docker buildx prune --all
```
and
```Shell
docker builder prune --all
```
## Conclusion
First of thanks for reading this.