Skip to content

Instantly share code, notes, and snippets.

@lazidoca
Created February 22, 2020 03:03
Show Gist options
  • Save lazidoca/0bd3383157102c07e199c2aa44d599ee to your computer and use it in GitHub Desktop.
Save lazidoca/0bd3383157102c07e199c2aa44d599ee to your computer and use it in GitHub Desktop.
Save multiple docker images
IDS=$(docker images | awk '{if ($1 ~ /^(debian|centos)/) print $3}')
docker save $IDS -o /path/to/save/somedockersimages.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment