A Python library for the Docker Engine API
Go to file
Sam Thursfield 2f3b87a470 Rewrite Client.import_image() and add less-magical versions
Rather than have one function that can do 5 things and attempts to guess
what the user wanted, it's good to have a function for each possible
method of importing an image. Error cases are handled a lot better this
way.

The unit test test_import_image_from_file() was changed to be
test_import_image_from_bytes(), because if we try to import a temporary
file in the test, the 'data' parameter of the 'fake_request' object is
an instance of a funny internal type like <_io.BufferedReader
name='/tmp/tmpc9chux'> and it's very hard to match such a thing with
`mock.assert_called_with()`.
2015-01-05 12:32:56 +00:00
docker Rewrite Client.import_image() and add less-magical versions 2015-01-05 12:32:56 +00:00
docs docs: Clarify import_image() docs 2015-01-05 12:26:29 +00:00
tests Rewrite Client.import_image() and add less-magical versions 2015-01-05 12:32:56 +00:00
.coveragerc Add coverage 2014-07-11 16:13:00 +02:00
.dockerignore Fixed socket for py3 2014-10-28 10:26:49 -04:00
.gitignore Fixed conflict 2014-10-29 15:21:18 -04:00
.travis.yml Run Travis tests on Docker 2014-12-17 09:20:57 -08:00
Dockerfile Reverted Dockerfile 2014-10-30 09:22:16 -04:00
LICENSE Add Apache 2.0 License 2013-08-07 11:39:59 -07:00
MANIFEST.in Add tests to sdist. 2014-09-26 13:59:39 -05:00
Makefile Add Makefile for running tests in Docker 2014-10-16 17:55:22 +01:00
README.md Added hosted docs info to README 2014-10-30 14:01:33 +01:00
docs-requirements.txt Added markdown docs 2014-10-24 16:55:22 -04:00
mkdocs.yml Update mkdocs.yml 2014-12-27 23:31:58 -08:00
requirements.txt Separated test dependencies from runtime dependencies 2014-04-04 16:41:26 +02:00
requirements3.txt Don't require websocket-client on Python 3 2014-04-27 22:07:17 +04:00
setup.py Resolves #101, don't use pinned dependencies. 2014-08-08 11:10:26 -04:00
test-requirements.txt Add coverage 2014-07-11 16:13:00 +02:00
tox.ini Updated tox.ini to also run utils_test.py tests 2014-11-03 20:07:13 +01:00

README.md

docker-py

Build Status

An API client for docker written in Python

Installation

Our latest stable is always available on PyPi.

pip install docker-py

Documentation

Documentation Status

Full documentation is hosted on ReadTheDocs. Sources are available in the docs/ directory.

License

Docker is licensed under the Apache License, Version 2.0. See LICENSE for full license text