mirror of https://github.com/docker/docker-py.git
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()`. |
||
|---|---|---|
| docker | ||
| docs | ||
| tests | ||
| .coveragerc | ||
| .dockerignore | ||
| .gitignore | ||
| .travis.yml | ||
| Dockerfile | ||
| LICENSE | ||
| MANIFEST.in | ||
| Makefile | ||
| README.md | ||
| docs-requirements.txt | ||
| mkdocs.yml | ||
| requirements.txt | ||
| requirements3.txt | ||
| setup.py | ||
| test-requirements.txt | ||
| tox.ini | ||
README.md
docker-py
An API client for docker written in Python
Installation
Our latest stable is always available on PyPi.
pip install docker-py
Documentation
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
