Skip to content

Instantly share code, notes, and snippets.

@fornarat
Last active March 12, 2017 00:35
Show Gist options
  • Save fornarat/2989369a0c76bb14d3c05a63a0275ad3 to your computer and use it in GitHub Desktop.
Save fornarat/2989369a0c76bb14d3c05a63a0275ad3 to your computer and use it in GitHub Desktop.
############################
### docker manual deploy
## refs
# https://nakkaya.com/2009/04/15/using-netcat-for-file-transfers/
# http://stackoverflow.com/questions/23935141/how-to-copy-docker-images-from-one-host-to-another-without-via-repository
############################
# docker save -o <save image to path> <image name>
docker save -o ferret-image hyperiongray/ferret:$docker_ferret_version
# on the remote server ubuntu@ip-172-31-3-92:
netcat -l 8888 > ferret-image
# on the local ws:
netcat -w 3 punk-ferret-4 8888 < ferret-image
# when done:
# (the open ports close automatically)
docker load -i ferret-image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment