6

Free up disk space by running these docker commands

 3 years ago
source link: https://dev.to/hossein761/free-up-disk-space-by-running-these-docker-commands-2okm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Cover image for Free up disk space by running these docker commands

Free up disk space by running these docker commands

Feb 14

・1 min read

If you are using Docker, every now and then your disk gets filled up with dangling docker images and volumes. Simple run the following commands to get rid of them and open up disk space on your machine:

# remove dangling images
docker rmi -f $(docker images -f dangling=true -q)

# remove dangling volumes
docker volume rm $(docker volume ls -qf dangling=true)
Enter fullscreen modeExit fullscreen mode

I am starting a newsletter focused on teaching hands-one backend and infrastructure through building micro-projects.
Follow me on Twitter for the announcement: hossein761


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK