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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access