Skip to content

Instantly share code, notes, and snippets.

@joshle
Created January 19, 2018 03:32
Show Gist options
  • Select an option

  • Save joshle/100c16ccc7121aec8df5867125803149 to your computer and use it in GitHub Desktop.

Select an option

Save joshle/100c16ccc7121aec8df5867125803149 to your computer and use it in GitHub Desktop.
#!/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