summaryrefslogtreecommitdiff
path: root/docker
Commit message (Collapse)AuthorAgeFilesLines
* Rename Client -> DockerClientdocker_clientJoffrey F2016-11-288-11/+133
| | | | | | | Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1186 from bfirsh/two-point-ohJoffrey F2016-11-2233-446/+4583
|\ | | | | A new user-focused API
| * Add helpful error for APIClient methods on ClientBen Firshman2016-11-221-0/+10
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Add new user-focused APIBen Firshman2016-11-2214-30/+2297
| | | | | | | | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Add docstrings to low-level APIBen Firshman2016-11-2212-2/+1876
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Make ping return bool instead of stringBen Firshman2016-11-221-1/+1
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Rename Client to APIClientBen Firshman2016-11-223-49/+59
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Remove AutoVersionClientBen Firshman2016-11-222-11/+1
| | | | | | | | | | | | Just do Client(version='auto'). Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Make docker.utils.ports a single fileBen Firshman2016-11-222-4/+0
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Make docker.ssladaptor a single fileBen Firshman2016-11-224-5/+2
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Make docker.auth a single fileBen Firshman2016-11-226-23/+7
| | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
| * Drop support for API versions <1.24Ben Firshman2016-11-222-0/+9
| | | | | | | | | | | | | | Implemented as just a warning. Actual removal of code will follow sometime in the future. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Fix ContainerApiMixin.copy with dict container argbiniambekele2016-11-221-1/+1
|/ | | | Signed-off-by: biniambekele <biniambekele@users.noreply.github.com>
* Merge pull request #1236 from docker/host_config_isolationJoffrey F2016-11-171-1/+9
|\ | | | | Add support for isolation param in host config
| * Add support for isolation param in host confighost_config_isolationJoffrey F2016-09-291-1/+9
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Convert dicts to Healthcheck objects, string commands to CMD-SHELL listsAanand Prasad2016-11-162-1/+10
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Add support for passing healthcheck to create_containerJamie Greeff2016-11-164-4/+60
| | | | | | | | Signed-off-by: Jamie Greeff <jamie@greeff.me>
* | fix JSON key typo, it should not be underscores, but should be camelCase ↵bin liu2016-11-111-1/+1
| | | | | | | | | | | | with first letter capital Signed-off-by: bin liu <liubin0329@gmail.com>
* | Add labels and shmsize arguments to the image buildRyan Belgrave2016-11-081-1/+18
| | | | | | | | Signed-off-by: Ryan Belgrave <Ryan.Belgrave@target.com>
* | Merge pull request #1230 from LabattFoodService/updateNodeJoffrey F2016-11-071-0/+7
|\ \ | | | | | | enable setting of node labels #1225
| * | enable setting of node labels #1225Nathan Shirlberg2016-09-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Added update_node function to enable setting labels on nodes. This exposes the Update a Node function from the Docker API and should enable promoting/demoting manager nodes inside a swarm. Signed-off-by: Nathan Shirlberg <nshirlberg@labattfood.com>
* | | Fix endpoint spec and networks params in update_service1212-fix_create_serviceJoffrey F2016-11-041-4/+13
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | WIPJoffrey F2016-11-045-5/+66
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Fix NpipeSocket.settimeout to match expected behavior1284-settimeout-fixJoffrey F2016-11-021-3/+6
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Implement retry logic when the npipe open procedure failsnpipe-socket-busy-retryJoffrey F2016-10-261-10/+24
| | | | | | | | | | | | | | | | | | with ERROR_PIPE_BUSY Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Fix dockerignore exclusion logic on Windowswin32-test-fixesJoffrey F2016-10-141-2/+2
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #1254 from docker/npipe-advancedJoffrey F2016-10-145-4/+45
|\ \ \ | | | | | | | | Several fixes to npipe support
| * | | Several fixes to npipe supportnpipe-advancedJoffrey F2016-10-125-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix _get_raw_response_socket to always return the NpipeSocket object - Override NpipeHTTPConnectionPool._get_conn to avoid crash in urllib3 - Fix NpipeSocket.recv_into for Python 2 - Do not call select() on NpipeSocket objects Signed-off-by: Joffrey F <joffrey@docker.com>
| * | | Do not allow bufsize to be 0 in NpipeSocket.makefile()1251-strictly-positive-bufsizeJoffrey F2016-10-111-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Merge pull request #1256 from docker/format_env_unicode_bugJoffrey F2016-10-131-0/+3
|\ \ \ \ | | | | | | | | | | Do not break when calling format_environment with unicode values
| * | | | Do not break when calling format_environment with unicode valuesformat_env_unicode_bugJoffrey F2016-10-121-0/+3
| |/ / / | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Merge pull request #1255 from docker/base_url_trailing_slashJoffrey F2016-10-131-2/+2
|\ \ \ \ | | | | | | | | | | Remove trailing slashes in result of utils.parse_host
| * | | | Remove trailing slashes in result of utils.parse_hostbase_url_trailing_slashJoffrey F2016-10-121-2/+2
| |/ / / | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Remove dead code in import_image_from_dataBen Firshman2016-10-131-3/+0
|/ / / | | | | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | | Update adapters to use pool_connections instead of num_poolsJoffrey F2016-10-043-6/+6
| | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | fix for got an unexpected keyword argument 'num_pools'Pierre Tardy2016-10-041-1/+1
| | | | | | | | | | | | | | | | | | requests's HTTPAdapter API is pool_connections for number of connection of the pool Signed-off-by: Pierre Tardy <tardyp@gmail.com>
* | | Add timeout to from_envBen Firshman2016-10-031-1/+3
| |/ |/| | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | Merge pull request #1224 from mferon/addRestartPolicyUpdateSupportJoffrey F2016-09-291-1/+9
|\ \ | | | | | | Add support for restart policy update
| * | Add support for restart policy updateMaxime Feron2016-09-281-1/+9
| | | | | | | | | | | | Signed-off-by: Maxime Feron <maxime.feron@corp.ovh.com>
* | | replace on_failure with on-failure徐俊杰2016-09-291-1/+1
|/ / | | | | | | | | Signed-off-by: 徐俊杰<roollingstone@gmail.com> Signed-off-by: XuPaco <roollingstone@gmail.com>
* | Pass file object to Tarfile.addfile()Christian Bundy2016-09-271-1/+12
| | | | | | | | | | | | | | | | | | | | This resolves an issue where TarFile.gettarinfo() doesn't include the file object, meaning that TarFile.addfile(TarFile.gettarinfo()) doesn't pass the test suite. Instead, this uses an open() within a try...except block to include a file object for each file without passing a file object when the path is a directory. Signed-off-by: Christian Bundy <christianbundy@fraction.io>
* | Synthesize executable bit on WindowsSebastian Schwarz2016-09-271-1/+5
|/ | | | | | | | | | | The build context is tarred up on the client and then sent to the Docker daemon. However Windows permissions don't match the Unix ones. Therefore we have to mark all files as executable when creating a build context on Windows, like `docker build` already does: https://github.com/docker/docker/issues/11047. Signed-off-by: Sebastian Schwarz <seschwar@gmail.com>
* Merge pull request #1210 from docker/identity-token-supportJoffrey F2016-09-161-1/+12
|\ | | | | Add support for identity tokens in config file
| * Add support for identity tokens in config file.identity-token-supportJoffrey F2016-09-151-1/+12
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Merge pull request #1215 from bfirsh/autopep8Joffrey F2016-09-149-8/+13
|\ \ | | | | | | Fix a few pep8 issues
| * | Fix a few pep8 issuesBen Firshman2016-09-149-8/+13
| | | | | | | | | | | | | | | | | | autopep8 --in-place --recursive --experimental -aaa --ignore E309 . Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* | | Merge pull request #1208 from docker/1207-configurable-num-poolsJoffrey F2016-09-144-15/+31
|\ \ \ | | |/ | |/| Number of pools in adapter is configurable
| * | Number of pools in adapter is configurable1207-configurable-num-poolsJoffrey F2016-09-124-15/+31
| | | | | | | | | | | | | | | | | | Default increased from 10 to 25 Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #1213 from bfirsh/parse-json-errorsJoffrey F2016-09-141-1/+4
|\ \ \ | | | | | | | | Parse JSON API errors
| * | | Parse JSON API errorsBen Firshman2016-09-141-1/+4
| | |/ | |/| | | | | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>