Skip to main content

Python wrapper for Docker Machine.

Project description

# docker-machine-py

[![Build Status](](

A Python library for the Docker Machine CLI. It does everything the docker-machine command does, but from within Python
– create machines, check status, get ip, run ssh commands, regenerate certificates, etc.

## Installation

The latest stable version is always available on PyPi.

pip install docker-py

## Documentation

[![Documentation Status](](

[Read the full documentation here.](

## Usage

import docker_machine
machine = Machine('my_digitalocean_machine')
if not machine.exists():
machine.create('digitalocean', access_token='my_digitalocean_access_token')

status = machine.status()

### Customizing the client

docker_machine.CLIENT = docker_machine.cli.client.Client(storage_path=None, storage_path=None, tls_ca_cert=None,
tls_ca_key=None, tls_client_cert=None, tls_client_key=None, github_api_token=None, native_ssh=False,

## Using the lower level wrapper

If you need more control or wish to interact with docker-machine exactly as you would from cli you can use the client

import docker_machine
client = Client()

Project details

Download files

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

Files for docker-machine-py, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size docker-machine-py-0.1.1.tar.gz (13.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page