4 ms·
I have a little one-liner I keep around on all my docker hosts that does this for me. I don't think you needed to wait for them to add anything. #!/usr/bin
by dijit 10y ago
I have a little one-liner I keep around on all my docker hosts that does this for me. I don't think you needed to wait for them to add anything.
#!/usr/bin/env bash
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
- alexellisuk 10y agoYes and isn't it fun to type that in over and over - especially on a new machine where you don't have your .dotfiles yet :-/ The new command is going to really save hassle here.
- nickjj 10y agoThe new command is definitely a nice addition, but I can't say that I've manually ran the other clean up commands in a long time. They were sitting in a daily cron for the last 9 months or so.