Skip to content

Instantly share code, notes, and snippets.

@algas
Created October 19, 2016 01:05
Show Gist options
  • Save algas/7ace475f8dfdf423c833b1a279ed3cf7 to your computer and use it in GitHub Desktop.
Save algas/7ace475f8dfdf423c833b1a279ed3cf7 to your computer and use it in GitHub Desktop.
Remove docker images named <none>
#!/bin/bash
docker images | awk '$1 ~ "<none>" {print $3}' | while read f; do docker rmi $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment