Skip to content

Instantly share code, notes, and snippets.

@prohazko2
Created February 6, 2019 19:58
Show Gist options
  • Save prohazko2/462d2a766e77e6ce0e1789395060121a to your computer and use it in GitHub Desktop.
Save prohazko2/462d2a766e77e6ce0e1789395060121a to your computer and use it in GitHub Desktop.
#!/bin/bash
empty=""
image=${1//\.tar/$empty}
echo $image
docker load --input $image.tar
docker tag $image localhost:5000/$image
docker push localhost:5000/$image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment