Skip to content

Instantly share code, notes, and snippets.

@umrashrf
Created October 3, 2019 15:31
Show Gist options
  • Save umrashrf/ed7873bb2670d6e87ffa7b110be6f3a8 to your computer and use it in GitHub Desktop.
Save umrashrf/ed7873bb2670d6e87ffa7b110be6f3a8 to your computer and use it in GitHub Desktop.
Delete all docker images except listed by names
docker rmi -f $(docker images | grep -v -E '^python|^postgres|^redis|^scrapinghub' | grep -oE '[a-z0-9]{12}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment