Monday, July 18, 2016

Automate Docker with the Remote API and Ruby

docker_logo

Docker is a really nifty tool to have under your belt. It's been used by many developers to ease the process of development. We have done many topics for Docker, you can check them here. If you have not yet installed Docker on your machine, you can find out how via those articles or on Docker's site.

In this post, I am going cover Docker's Remote API. If you used Docker up to this point, it's likely been via the command-line interface which is actually a client that uses the Remote API. By the way, I presume that you understand all the basics of Docker. If not, please read the articles I link to above.

Before we can interact with the API we have to configure Docker to listen on a specific TCP port. Let's edit the Docker config file:

Path: /etc/init/docker.conf

Add this line:

DOCKER_OPTS='-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock'

Continue reading %Automate Docker with the Remote API and Ruby%


by Ardian Haxha via SitePoint

No comments:

Post a Comment