Hacker News new | ask | show | jobs
by biscarch 3618 days 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/

2 comments

This 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.

Very cool, I'll give this a shot!