Skip to main content

Python wrapper around docker-machine

Project description

Pythonic wrapper around docker-machine

installation

$ python setup.py install

or:

$ pip install python-docker-machine

usage

Documentation Status
import machine
import docker
m = machine.Machine(path="/usr/local/bin/docker-machine")
client = docker.Client(**m.config(machine='default'))
client.ping()

requirements

docker-machine on your system path

https://docs.docker.com/machine/install-machine/

running the test suite

Make sure docker-machine is available on your system path. Next you need to create a docker machine with the name python-docker-machine with the driver of your choice, for example the virtualbox driver:

$ docker-machine create -d virtualbox python-docker-machine

Now you can run the tests with nose:

$  nosetests
......................
----------------------------------------------------------------------
Ran 22 tests in 0.262s

or with tox:

$ tox

Project details


Download files

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

Source Distribution

python-docker-machine-0.2.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file python-docker-machine-0.2.2.tar.gz.

File metadata

File hashes

Hashes for python-docker-machine-0.2.2.tar.gz
Algorithm Hash digest
SHA256 851d1df0875c0ee2e499bc1100e02107a7f6a27706e3bbe9a89edc14838afce7
MD5 3a30b9aaab00b7e98a99ba78c2f03d2d
BLAKE2b-256 65d4cd4968ff3e71c4972f8c2d97da9d71c17e968265ade44d09773d9740a72e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page