Skip to content

Instantly share code, notes, and snippets.

@DevWurm
Created September 30, 2016 06:38
Show Gist options
  • Select an option

  • Save DevWurm/67dc9e88e047dbde1067b5a1ec16d800 to your computer and use it in GitHub Desktop.

Select an option

Save DevWurm/67dc9e88e047dbde1067b5a1ec16d800 to your computer and use it in GitHub Desktop.
Remove all unused docker images from local cache
#!/bin/bash
docker rmi $(docker images | tail -n +2 | awk '{ print $3; }' | tr '\n' ' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment