Update README.md
This commit is contained in:
34
README.md
34
README.md
@@ -18,3 +18,37 @@ The Container need our certificate! -> Check if this works now?
|
|||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
[Documentation](./doc/README.md)
|
[Documentation](./doc/README.md)
|
||||||
|
|
||||||
|
# Docker cleanup
|
||||||
|
|
||||||
|
1. Stop and Remove All Running & Stopped Containers
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker stop $(docker ps -aq) # Stop all running containers
|
||||||
|
docker rm $(docker ps -aq) # Remove all containers
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Remove All Images
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker rmi -f $(docker images -q) # Remove all images
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Remove All Volumes
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker volume rm $(docker volume ls -q) # Delete all volumes
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Remove Build Cache (BuildKit & Layers)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker builder prune -a -f
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Remove All Networks (Optional)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker network prune -f
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user