© Moshe Zadka 2019
Moshe ZadkaDevOps in Pythonhttps://doi.org/10.1007/978-1-4842-4433-3_12

12. Docker

Moshe Zadka1 
(1)
Belmont, CA, USA
 

Docker is a system for application-level virtualization. While different Docker containers share a kernel, they will usually share little else: files, processes, and more can all be separate. It is commonly used for both testing software systems and running them in production.

There are two main ways to automate Docker. It is possible to use the subprocess library and use the docker command line. This is a popular way and does have some advantages.

However, an alternative is to use the dockerpy library . This allows doing some things that are completely impossible with the docker command, as well as some things that ...

Get DevOps in Python: Infrastructure as Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.