Your Own Docker Machine

docker-blackInitially I wanted to write a detailed tutorial based on what I did a couple of months ago, but it turns out it’s no longer necessary. Docker Machine lets you configure your own server using a single command:

Where:
– [name]: how you’d like to call your server in Docker
– [ip]: public IP address of your server
– [user]: user login on your server
– [key]: user private key, for example id_rsa or a key file generated by your hosting service

You may also need to update your server’s firewall configuration by opening port 2376 for Docker daemon, along with any other ports the application is using (e.g. HTTP 80).

Now you can activate your server in Docker:

and you can run any docker image on it, for example nginx (adjust host port number as necessary):

Now visit your server in a web browser and you should see familiar “Welcome to nginx!” page.

Leave a Reply

Your email address will not be published.