O'Reilly logo

The Docker Book by James Turnbull

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8 Using the Docker API

In Chapter 6, we saw some excellent examples of how to run services and build applications and workflow around Docker. One of those examples, the TProv application, focused on using the docker binary on the command line and capturing the resulting output. This is not an elegant approach to integrating with Docker; especially when Docker comes with a powerful API you can use to integrate directly.

In this chapter, we’re going to introduce you to the Docker API and see how to make use of it. We’re going to take you through binding the Docker daemon on a network port. We’ll then take you through the API at a high level and hit on the key aspects of it. We’ll also look at the TProv application we saw in Chapter 6 and rewrite ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required