Skip to content

Instantly share code, notes, and snippets.

@pvacca
Last active February 14, 2017 03:45
Show Gist options
  • Select an option

  • Save pvacca/2da9755edf46eec9dd2e to your computer and use it in GitHub Desktop.

Select an option

Save pvacca/2da9755edf46eec9dd2e to your computer and use it in GitHub Desktop.
Docker list all container ids

When you can't use docker -q because you need to filter first. . .

docker images |grep -e 9.5 -e latest |awk '{print $3}'

Remove all incomplete docker images (temporary from failed builds):

docker images -f "dangling=true" -q |xargs docker rmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment