Communicating with Docker¶
DockerDaemon¶
The DockerDaemon object allows us to communicate with the Docker daemon via the Docker HTTP REST API.
-
subuserlib.classes.docker.dockerDaemon.
RealDockerDaemon
¶ alias of
DockerDaemon
-
subuserlib.classes.docker.dockerDaemon.
archiveBuildContext
(archive, relativeBuildContextPath, repositoryFileStructure, excludePatterns, dockerfile=None)[source]¶ Archive files from directoryWithDockerfile into the FileObject archive excluding files who’s paths(relative to directoryWithDockerfile) are in excludePatterns. If dockerfile is set to a string, include that string as the file Dockerfile in the archive.
Container¶
Container objects allow you to interact with docker containers via the Docker daemon.
Helper functions¶
This module helps us interact with the Docker executable directly.
-
subuserlib.docker.
getAndVerifyExecutable
()[source]¶ Return the name of the docker executable. Exits and displays a user friendly error message if docker is not setup correctly.
-
subuserlib.docker.
getExecutable
()[source]¶ Return the name of the docker executable or None if docker is not installed.