summaryrefslogtreecommitdiff
path: root/docker/client.py
Commit message (Collapse)AuthorAgeFilesLines
* Support version parameter in `Client.from_env`1075-from-env-versionJoffrey F2016-08-251-1/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1081 from tescalada/masterJoffrey F2016-08-231-2/+10
|\ | | | | 1059-Fixing a bug with multiple json objects
| * 1059-Fixing a bug with multiple json objectsTristan Escalada2016-08-011-2/+10
| | | | | | | | | | | | | | This splits the text by CRLF and then json.loads each part independently instead of attempting the parse the whole string. Signed-off-by: Tristan Escalada <tristan@escalada.us>
* | Swarm service API implementationJoffrey F2016-08-171-2/+3
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | docker client consistency: don't quote ':/'Tomas Tomecek2016-08-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | E.g. docker client `/v1.21/images/localhost:5000/busybox/push?tag=` docker-py `/v1.21/images/localhost%3A5000%2Fbusybox/push` Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | Added support for docker swarm api version 1.24.minzhang2016-08-031-1/+2
|/ | | | | | | | | | | 3 API are added swarm_init() swarm_leave() swarm_join() Signed-off-by: Min Zhang<minzhang.work@gmail.com> Signed-off-by: Min Zhang <virgilerin@gmail.com>
* Set custom user agent on clientBen Firshman2016-07-201-1/+3
| | | | Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Rename read_iter() to frames_iter()Aanand Prasad2016-07-131-3/+3
| | | | | | | This makes it more clearly high-level and distinct from the raw data-reading functions Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Remove unused importsAanand Prasad2016-07-131-4/+1
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Move read_loop() into docker.utils.socket.read_iter()Aanand Prasad2016-07-131-12/+4
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Remove duplicated methods from container.pyAanand Prasad2016-07-131-31/+1
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Read from socket after sending TCP upgrade headers.Joffrey F2016-07-131-0/+50
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update parse_host and testsJoffrey F2016-06-021-2/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* npipe support cleanupJoffrey F2016-06-021-7/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Experimental npipe:// supportJoffrey F2016-06-021-0/+12
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Don't set socket timeout if it's already disabled when streamingKevin Frommelt2016-05-101-6/+21
| | | | Signed-off-by: Kevin Frommelt <kevin.frommelt@gmail.com>
* Add docker.from_env() shortcutBen Firshman2016-03-151-1/+9
| | | | | | A much neater way of getting started with docker-py. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Support unspecified protocol in base_url when using TLS894-docker_host_envJoffrey F2016-01-281-4/+4
| | | | | | (assume HTTPS) Signed-off-by: Joffrey F <joffrey@docker.com>
* Add HttpHeaders support in load_configPavel Kravchenko2016-01-181-1/+5
| | | | Signed-off-by: Pavel Kravchenko <kpavel@il.ibm.com>
* Don't break if base_url == None and TLS is enabledbase_url_noneJoffrey F2016-01-081-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix attach method over SSL connectionsStephen Moore2015-10-141-4/+16
| | | | Signed-off-by: Stephen Moore <stephen@delfick.com>
* put/get archive implementationJoffrey F2015-10-141-0/+3
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Implement methods for managing networksAanand Prasad2015-10-141-1/+2
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* _url can take arbitrarily many argumentsAanand Prasad2015-09-251-11/+12
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Basic volume API implementation.Joffrey F2015-09-151-1/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Move client internals back to Client class. Remove obsolete ClientBase classapi_splitupJoffrey F2015-09-111-4/+286
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Split different APIs into several mixins for clarity / easier maintenanceJoffrey F2015-09-111-872/+9
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* url-quote user-provided param before inserting in URL.Joffrey F2015-08-311-42/+43
|
* Merge pull request #662 from stevenewey/exec_create_userJoffrey F2015-08-261-2/+6
|\ | | | | Exec create user
| * Merge branch 'master' into exec_create_userStephen Newey2015-08-121-299/+57
| |\
| * | Change unnecessary user=None in args to empty string and remove check.Stephen Newey2015-08-121-4/+1
| | |
| * | Add user argument to exec_create documentation.Stephen Newey2015-06-301-1/+1
| | |
| * | Add support for user on exec_create.Stephen Newey2015-06-301-2/+9
| | |
* | | Better support for .dockerignoreAanand Prasad2015-08-261-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Support all basic pattern forms: file, directory, *, ?, ! - Fix handling of wildcard patterns and subdirectories - `*/a.py` should match `foo/a.py`, but not `foo/bar/a.py` - Fix handling of directory patterns with a trailing slash - make sure they're handled equivalently to those without one - Fix handling of custom Dockerfiles - make sure they go in the tarball Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Prevent users from attempting to override 'version'Aanand Prasad2015-08-251-0/+5
| | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | Add version param to utils.create_host_configJoffrey F2015-08-241-3/+12
| | | | | | | | | | | | | | | | | | Add create_host_config and create_container_config to Client for version awareness Trigger warning when create_host_config is used without version
* | | Merge pull request #711 from ClusterHQ/exec_inspect_versionJoffrey F2015-08-241-2/+4
|\ \ \ | | | | | | | | Change minimum API version for exec_inspect
| * | | Update error message to state that exec_inspect is not supportedBridget McErlean2015-08-121-1/+3
| | | |
| * | | Change minimum API version for exec_inspectBridget McErlean2015-08-121-2/+2
| | |/ | |/|
* | | Add logging for auth loading/resolutionAanand Prasad2015-08-201-0/+20
|/ / | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Explicited start config tricksjhowardmsft-14530-netmodeJoffrey F2015-08-101-11/+13
| |
* | Moved network_mode default to create_host_config ; small fix to preserve ↵Joffrey F2015-07-291-1/+1
| | | | | | | | blank host_config in start if no option is provided
* | Merge pull request #682 from docker/moutten-fix-build-authJoffrey F2015-07-221-3/+8
|\ \ | | | | | | Switch to send full AuthConfig object for build action
| * | Make build auth work with API versions < 1.19 toomoutten-fix-build-authJoffrey F2015-07-201-3/+8
| | |
| * | Merge branch 'fix-build-auth' of https://github.com/moutten/docker-py into ↵Joffrey F2015-07-201-1/+1
| |\ \ | | | | | | | | | | | | moutten-fix-build-auth
| | * | Switch to send full AuthConfig object for build actionMatt Outten2015-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In order to support the docker API for version 1.7+, this command changes the way the `X-Registry-Config` header is sent when attempting to build an image.
* | | | Added check_resource decorator to exec_createexec_create_check_dictJoffrey F2015-07-201-0/+1
|/ / /
* | | Use constant for deprecation message in auth.pyJoffrey F2015-07-201-3/+4
| | |
* | | Stop pinging registries from the clientAanand Prasad2015-07-201-6/+21
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The daemon already pings the registry, so doing it on our end is redundant and error-prone. The `insecure_registry` argument to `push()`, `pull()` and `login()` has been deprecated - in the latter case, it wasn't being used anyway. The `insecure` argument to `docker.auth.resolve_repository_name()` has also been deprecated. `docker.utils.ping_registry()` has been deprecated. `docker.auth.expand_registry_url()` has been removed. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Removed execute() methodJoffrey F2015-07-081-13/+0
| |