https://github.com/aa-nadim/docker
https://github.com/aa-nadim/docker
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aa-nadim/docker
- Owner: aa-nadim
- Created: 2023-08-24T10:10:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T06:50:10.000Z (4 months ago)
- Last Synced: 2025-01-27T07:28:58.742Z (4 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker
Clean up your HDD
To free up system HDD space, please use the following command. It will delete unnecessary Docker images, volumes, networks, and cached Docker objects:`docker system prune -a --volumes`
```
Stop All Running Containersdocker stop $(docker ps -aq)
________________________________________________
Remove All Containers
docker rm $(docker ps -aq)
____________________________Remove All Images
docker rmi $(docker images -q) --force
____________________________Remove All Volumes
docker volume rm $(docker volume ls -q)
____________________________Remove All Networks
docker network rm $(docker network ls -q)
____________________________Remove All Docker Data
docker system prune --all --force
____________________________Remove Docker Images
docker rmi -f $(docker images -a -q)
____________________________Clean Up Docker System (Optional)
docker system prune -a --volumes
```