Created
January 19, 2018 03:32
-
-
Save joshle/100c16ccc7121aec8df5867125803149 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker pull $1 | |
| tarname=$(echo $1 | sed -e "s/\//_/g" | sed -e "s/:/_/g").tar | |
| docker save $1 > $tarname | |
| gzip $tarname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment