Docker Cookbook - Second Edition

Docker Cookbook - Second Edition

Exploring Docker remote API client libraries

In the previous recipes, we explored APIs provided by Docker to connect and perform operations on the Docker daemon. Docker also provides the Software Development Kit for the python and go languages.

In this recipe, let's explore the python SDK with a few examples.

Getting ready

  • Ensure python3 is installed.
  • ubuntu 16.04 might not have pip3, so install pip3 using the following command:
        $ sudo apt-get -y install python3-pip  

How to do it...

  1. Let's begin by installing the docker package for python using pip3...
Unlock full access

Continue reading with a subscription

Packt gives you instant online access to a library of over 7,500 practical eBooks and videos, constantly updated with the latest in tech

End of Section 7

Your notes and bookmarks