3 ms·
If you go the docker-machine route, you can do the following. brew install docker-machine docker-machine create --name myserver ...digital-ocean-option
by biscarch 10y ago
If you go the docker-machine route, you can do the following.
brew install docker-machine
docker-machine create --name myserver ...digital-ocean-options
eval $(docker-machine env myserver)
docker ps
that is:
* install docker-machine
* provision a droplet with docker on it (you can also use test.docker.com to use an RC instead of the latest release)
* set your local shell env to point docker to said machine
* use the docker client to interact with said machine
I also use docker-for-mac and a similar process to spin up swarm-mode clusters. You can also ssh into the machine if you need to by `docker-machine ssh myserver`
[0]: https://docs.docker.com/machine/drivers/digital-ocean/ https://docs.docker.com/machine/drivers/digital-ocean/
- dchuk 10y agoVery cool, I'll give this a shot!
- dmix 10y agoThis is a pretty standard use-case from my experience. I'm new to docker but I work with a lot of different startups via consulting and they are all starting to use docker and almost everyone is using docker-compose, and/or docker-machine for their set ups. It's probably worth investing in learning docker-compose.