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

import machine
m = machine.Machine(path="/usr/local/bin/docker-machine")
m.version()

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.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

python_docker_machine-0.1-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for python-docker-machine-0.1.tar.gz
Algorithm Hash digest
SHA256 65aefb4cdf87d10674a973383d51fd892f414331aeac36b06e06a45dfd196e48
MD5 2a89ff6eb6d873ac1230092971bb536e
BLAKE2b-256 92409968ccb0d2b7fdf6f38e76b312d7d043c886cdf34716da4e21f9ca60eb8d

See more details on using hashes here.

File details

Details for the file python_docker_machine-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_docker_machine-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aff830b3bdcb17d4d80f7d0e8ec64fa649649881552ad36eee5d6221b052f72a
MD5 e52f59e65bd5e53df13781349e13277c
BLAKE2b-256 5cc9c9fca0da4e76973aacb5e7ac908806e1c9bc0f67640bda0cee704327a8ec

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