March 2017
Beginner to intermediate
925 pages
18h 11m
English
In the last few recipes, we explored the APIs provided by Docker to connect and perform operations to the remote Docker daemon. The Docker community has added bindings for different programming languages to access those APIs. Some of them are listed at https://docs.docker.com/reference/api/remote_api_client_libraries/.
Note that Docker Maintainers do not maintain these libraries. Let's explore Python bindings with a few examples and see how it uses the Docker remote API.
docker-py on Fedora:$ sudo yum install python-docker-py
Alternatively, use pip to install the package:
$ sudo pip install docker-py
$ python >>> import docker
Read now
Unlock full access