Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Clean command #14

Open
sevilayerkan opened this issue May 10, 2023 · 1 comment
Open

feat: Clean command #14

sevilayerkan opened this issue May 10, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request phase1 For issues needs to be done at phase 1
Milestone

Comments

@sevilayerkan
Copy link
Owner

sevilayerkan commented May 10, 2023

Clean command that deletes unused docker images could be useful. A common issue with using docker is the /var/lib/docker/ folder may take up gigabytes of space which will eventually cause an out of disk space issue on the host system.

Sometimes there are leftover docker images of previously ran docker containers that have not been cleaned up. These images can be removed by running the command below, which will remove all data of non-running containers. source

docker system prune -a --volumes

Removing unused and dangling images will help us to reclaim disk space. We can achieve this using the image prune child command. We can use the system prune child command to remove multiple unused objects in one go. This command removes all unused networks, images, containers (if closed), dangling build caches, and optionally, volumes.

docker image prune -a -f

@sevilayerkan sevilayerkan added enhancement New feature or request phase1 For issues needs to be done at phase 1 labels May 10, 2023
@sevilayerkan sevilayerkan added this to the Phase 1 milestone May 10, 2023
@sevilayerkan sevilayerkan self-assigned this May 10, 2023
@sevilayerkan
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request phase1 For issues needs to be done at phase 1
Projects
None yet
Development

No branches or pull requests

1 participant