https://github.com/gijzelaerr/python-docker-machine
Python wrapper around docker-machine
https://github.com/gijzelaerr/python-docker-machine
docker docker-machine machine python wrapper
Last synced: 4 months ago
JSON representation
Python wrapper around docker-machine
- Host: GitHub
- URL: https://github.com/gijzelaerr/python-docker-machine
- Owner: gijzelaerr
- License: other
- Created: 2016-02-18T15:30:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T14:45:17.000Z (over 5 years ago)
- Last Synced: 2025-03-24T16:51:43.426Z (11 months ago)
- Topics: docker, docker-machine, machine, python, wrapper
- Language: Python
- Size: 35.2 KB
- Stars: 30
- Watchers: 3
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=====================
python-docker-machine
=====================
Pythonic wrapper around docker-machine
installation
------------
::
$ python setup.py install
or::
$ pip install python-docker-machine
usage
-----
.. image:: https://readthedocs.org/projects/python-docker-machine/badge/?version=latest
:target: http://python-docker-machine.readthedocs.org/en/latest/?badge=latest
:alt: Documentation Status
::
import machine
import docker
m = machine.Machine(path="/usr/local/bin/docker-machine")
client = docker.APIClient(**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