A Python library for the Docker Engine API
Go to file
Sam Thursfield 42b91885a2 Rework Unix connection code so that 'chunked' transfers work
This allows streaming a system to the 'import' command, rather than
having to read the whole thing into memory before sending it.

Previously both the UnixAdapter and the docker.Client objects would
track the 'base URL' of the Docker daemon (socket path in the case of
local Unix-domain socket connections). The Client object would construct
URLs which contained the path to the socket with the path of the Docker
API call appended. The UnixHTTPConnection instance would then remove the
known socket path from the URL.

This relied on all calls going through the HTTPConnection.request()
function, where the URL could be rewritten. In the case of 'chunked'
HTTP POST requests this doesn't happen, so such calls would request
a path still including the socket path and would receive a 404 error.

The client now constructs URLs containing just the path of the desired API
endpoint, and expects the Unix socket transport to know the path to the
Docker daemon's socket.
2015-01-05 12:05:39 +00:00
docker Rework Unix connection code so that 'chunked' transfers work 2015-01-05 12:05:39 +00:00
docs Updated documentation 2014-12-18 11:20:31 -08:00
tests Rework Unix connection code so that 'chunked' transfers work 2015-01-05 12:05:39 +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