Skip to content

Instantly share code, notes, and snippets.

@dankelly
Last active August 27, 2018 17:13
Show Gist options
  • Select an option

  • Save dankelly/0e8eda51a9e502f7597b4866692e7b72 to your computer and use it in GitHub Desktop.

Select an option

Save dankelly/0e8eda51a9e502f7597b4866692e7b72 to your computer and use it in GitHub Desktop.
Shell script: Delete all Docker images
#!/bin/sh
docker images -a | grep -v REPOSITORY | tr -s ' ' | cut -d ' ' -f3 | xargs docker rmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment