Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Run Docker daemon as a subprocess

Project description

dockerd library spawns your own Docker daemon as a subprocess, lets you run some docker commands, and then kills the daemon when you don't need it anymore.

It works perfectly inside privileged docker containers (achieving docker-in-docker in a faster and more self-contained way than official tutorials)

## Example code
#!/bin/env python3
from dockerd import Docker, CalledProcessError
import sys

with Docker() as docker:
except CalledProcessError:

try:'.', cache_from='lew21/dockerd', pull=True, tag='dockerd')
docker.tag('dockerd', 'lew21/dockerd')
except CalledProcessError as e:


Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dockerd, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size dockerd-1.0.0-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size dockerd-1.0.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page