Skip to content

Instantly share code, notes, and snippets.

@FirefoxMetzger
Last active February 12, 2018 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FirefoxMetzger/687419dd4c6223b2247c3c5e3335401c to your computer and use it in GitHub Desktop.
Save FirefoxMetzger/687419dd4c6223b2247c3c5e3335401c to your computer and use it in GitHub Desktop.
#!/bin/bash
docker-machine scp -r . myRegistry:~
docker-machine ssh myRegistry docker load -i registry.tar
docker-machine ssh myRegistry sudo cp -r certs /var/lib/boot2docker
docker-machine ssh myRegistry docker stack deploy --compose-file=docker-compose.yml registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment