Skip to content

Instantly share code, notes, and snippets.

@peter-mcconnell
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save peter-mcconnell/11291924 to your computer and use it in GitHub Desktop.

Select an option

Save peter-mcconnell/11291924 to your computer and use it in GitHub Desktop.
useful docker cmds
# delete dead images
for i in `sudo docker images|grep \<none\>|awk '{print $3}'`;do sudo docker rmi $i;done
# delete containers
sudo docker rm -f `sudo docker ps --no-trunc -a -q`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment