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 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
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
Built Distribution
Close
Hashes for python-docker-machine-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2874e890462dde637058d69d5a617893b766ac0c61155acc38af8e86d1f2a7e |
|
MD5 | 534174c0791688986c2fafc9aa91ed61 |
|
BLAKE2b-256 | 20e5a9291834f0c6f1e789b3f6c7819bcfd9134c69606ca0556772ec6e175b3e |
Close
Hashes for python_docker_machine-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ecd161c5c88752e5f9feb17a24ba8e13ba87b25eb37c9465837be3e8be3902f |
|
MD5 | 56d5efd72059159ae0c8389cc682d21b |
|
BLAKE2b-256 | f05dda5c841df595573abef3089e6c6729e7e7e25669d45a6461e7f89fc70a62 |