| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
from True to False)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
https://github.com/ssssam/docker-py into ssssam-sam/import-improvements
Conflicts:
docker/client.py
docker/unixconn/unixconn.py
tests/integration_test.py
|
| |
| |
| |
| |
| |
| | |
Currently TestImportFromStream fails, because something is going wrong
with the HTTP chunked transfer-encoding. This didn't work before,
either (for a different reason).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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()`.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
heavily inspired by PR#281
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
|
| | |
|
|\ \
| | |
| | | |
Add special cases for .dockerignore
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes #498
Allowing `Dockerfile` and `.dockerignore` in the exclusion filter
completely breaks the build on docker < 1.5
In Docker 1.5 these entries are treated as special cases when included
in the .dockerignore and are still sent as part of the context. The
daemon ends up excluding them from any `ADD`, `COPY`, and cache
validation.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
|
|\ \ \
| | | |
| | | | |
Lxc driver test compat
|
| | | | |
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
Rename test fix to take into account docker/docker#11003
|
| |/ / |
|
|/ /
| |
| |
| |
| |
| |
| | |
Instead of expanding the registry name we're looking for to a full URL,
strip entries in the authconfig down to just the hostname.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
into nir0s-add-stats-api-support
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add missing options to the events command
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
- Add since, until and filters parameters to `Client.events`
- Add missing `events`command in the documentation
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
|
|/ / |
|
|\ \
| | |
| | | |
New Client.rename() method
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| | |
Avoid crashing when the Docker python client is able to load
registry credentials when building using a remote source
Signed-off-by: Vincent Giersch <vincent.giersch@ovh.net>
|
| | |
|
| |
| |
| |
| |
| |
| | |
The new docker api allows specifing mac address for containers. This change is to allow docker py the same functionality.
Signed-off-by: James Harris <james@rancher.com>
|