summaryrefslogtreecommitdiff
path: root/docker/client.py
Commit message (Collapse)AuthorAgeFilesLines
* ClientBase class to extract utility methods and constructor and sanitize ↵clientbase_extractionJoffrey F2015-07-011-227/+5
| | | | Client class
* Merge pull request #651 from docker/fix_647Joffrey F2015-06-301-3/+12
|\ | | | | Fix adapter bug + regression test
| * Fix Unix socket adapter bug with double slash in path + regression testfix_647Joffrey F2015-06-301-3/+12
| |
* | Merge pull request #644 from docker/memory-memswap-hostconfigJoffrey F2015-06-301-3/+3
|\ \ | |/ |/| memory / memswap in hostconfig
| * Moved mem_limit and memswap_limit to host_config for API version >= 1.19Joffrey F2015-06-191-3/+3
| |
* | Added git@ as a valid prefix for remote build pathsfix_640Joffrey F2015-06-301-1/+1
| |
* | Merge branch 'id-resolution-in-check-resource' of ↵Joffrey F2015-06-301-51/+0
|\ \ | | | | | | | | | https://github.com/posita/docker-py into posita-id-resolution-in-check-resource
| * | Move image/container ID resolution to @check_resource decorator.Matt Bogosian2015-05-201-51/+0
| | |
* | | Fix stop timeout bugfix_649Joffrey F2015-06-241-1/+1
| | |
* | | Updated websocket-client dependency to latest version (now supports python 3)Joffrey F2015-06-191-7/+2
| |/ |/|
* | Merge branch 'pullfix' of https://github.com/glogiotatidis/docker-py into ↵Joffrey F2015-06-191-1/+4
|\ \ | | | | | | | | | | | | | | | | | | glogiotatidis-pullfix Conflicts: docker/client.py
| * | Fix pull parameter for docker server version < 1.7.Giorgos Logiotatidis2015-06-011-0/+6
| | |
| * | Set default value for pull to False on build(). Fixes 622.Giorgos Logiotatidis2015-06-011-1/+1
| |/
* | Enforce consistent style for push and pull methodsJoffrey F2015-06-181-10/+13
| |
* | Add and document a decode parameter for buildPhilipp Möller2015-06-181-2/+3
| | | | | | | | | | This makes the build method consistent with the events method and adds some convenience.
* | Add raise_for_status check to push and pull methodsBradley Cicenas2015-06-181-0/+4
| | | | | | | | as underlying exceptions(such as push already in progress) will be hidden in the stream generator otherwise.
* | Add volume_driver param to client.create_containerLuke Marsden2015-06-181-2/+3
|/ | | | | | | - Add appropriate test which also asserts that volume names can be passed through to drivers. - Add new param to docs. Signed-off-by: Luke Marsden <luke@clusterhq.com>
* Only allow privileged exec_create for API version >= 1.19Joffrey F2015-05-201-2/+6
|
* Merge branch 'privilege' of https://github.com/tonicbupt/docker-py into ↵Joffrey F2015-05-201-2/+3
|\ | | | | | | tonicbupt-privilege
| * add privilege for exec_createtonic2015-05-081-2/+3
| |
* | Fix #602. Raise ValueError on empty argument to inspect_{container,image}() ↵Matt Bogosian2015-05-171-0/+2
| | | | | | | | methods.
* | Fix the parameter mismatchHackToday2015-05-121-1/+1
| | | | | | | | Closes-Issue: #597
* | Fix typo in deprecated insert method. Fixes #595Maxime Petazzoni2015-05-111-1/+1
| | | | | | s/fornat/format/
* | Added deprecation warning for host config in startJoffrey F2015-05-081-0/+6
|/
* Bumped versionJoffrey F2015-05-041-1/+2
|
* Merge pull request #576 from ctrlhxj/fix_exec_resizeJoffrey F2015-04-301-8/+5
|\ | | | | exec_resize is incorrectly passing param as json
| * exec_resize is incorrectly passing param as jsonXiaojian Huang2015-04-281-8/+5
| |
* | Update client.pyPeter Mooshammer2015-04-291-1/+1
|/
* * Separate file to store constantsJoffrey F2015-04-271-11/+16
| | | | * Added container_limits param to Client.build
* Updated exec API documentationexec_reworkJoffrey F2015-04-271-3/+1
|
* Exec API testsJoffrey F2015-04-271-1/+1
|
* Properly implement exec APIJoffrey F2015-04-271-5/+48
|
* Merge pull request #564 from docker/check_resource_not_noneJoffrey F2015-04-271-4/+35
|\ | | | | Added check_resource decorator
| * Added check_resource decorator to interrupt command if container or image ↵Joffrey F2015-04-241-4/+35
| | | | | | | | argument is None
* | fix(client.py): unification the container argumentPahaz Blinov2015-04-261-0/+2
|/
* Handle ID truncate on client side in containers list (and changed default ↵client_side_truncJoffrey F2015-04-221-1/+4
| | | | from True to False)
* Add support for ulimits in host_configJoffrey F2015-04-221-2/+8
|
* Merge branch 'sam/import-improvements' of ↵Joffrey F2015-04-221-28/+86
|\ | | | | | | | | | | | | | | | | https://github.com/ssssam/docker-py into ssssam-sam/import-improvements Conflicts: docker/client.py docker/unixconn/unixconn.py tests/integration_test.py
| * Rewrite Client.import_image() and add less-magical versionsSam Thursfield2015-01-051-19/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()`.
| * Rework Unix connection code so that 'chunked' transfers workSam Thursfield2015-01-051-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'pull_auth' of https://github.com/hibooboo2/docker-py into ↵Joffrey F2015-04-221-10/+15
|\ \ | | | | | | | | | hibooboo2-pull_auth
| * | Add auth config to pullJames Harris2015-02-181-10/+15
| | |
* | | IPC sharing implementationYaroslav Molochko2015-03-301-2/+6
| | |
* | | Added some type and version checks; removed security_opt from ↵Joffrey F2015-03-251-3/+8
| | | | | | | | | | | | container_config (as this is invalid)
* | | Add security_opt for create/startEric Windisch2015-03-241-4/+7
| | | | | | | | | | | | Signed-off-by: Eric Windisch <eric@windisch.us>
* | | Merge branch 'master' of github.com:docker/docker-pyJoffrey F2015-03-201-4/+4
|\ \ \
| * \ \ Merge pull request #531 from josephpage/dockerignore-eof-windowsJoffrey F2015-03-201-1/+1
| |\ \ \ | | | | | | | | | | Windows : fix EOL of .dockerignore file
| | * | | Windows : str.splitlines instead of str.splitJoseph Page2015-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | To be able to read `.dockerignore` file edited on Windows, python-py may use the multi-platform split function `str.splitlines()` Ref : https://docs.python.org/2/library/stdtypes.html#str.splitlines
| * | | | Update default API version to 1.18Aanand Prasad2015-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
| * | | | Implemented labels for docker-pyAndré Martins2015-03-171-2/+2
| |/ / / | | | | | | | | | | | | Signed-off-by: André Martins <martins@noironetworks.com>