Skip to content

Instantly share code, notes, and snippets.

@jaymody
Created June 2, 2020 23:43
Show Gist options
  • Save jaymody/b6ea54e2fb458bdf3d04be01decf9d4d to your computer and use it in GitHub Desktop.
Save jaymody/b6ea54e2fb458bdf3d04be01decf9d4d to your computer and use it in GitHub Desktop.
docker save with a progress bar
# If you're impatient like me, a progress bar can be a comforting way to impulsively check the progress
# of your docker save command
#
# You'll need tqdm installed (https://github.com/tqdm/tqdm) for this to work.
docker save IMAGE_NAME | tqdm --bytes --total $(docker image inspect IMAGE_NAME --format='{{.Size}}') > OUTPUT_TAR_NAME
@aarav2you
Copy link

works with docker commit as well. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment