summaryrefslogtreecommitdiff
path: root/docker/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Use get instead of bracket notationJoffrey F2015-03-201-1/+1
| | | |
* | | | Merge branch 'fix-port-host-net' of https://github.com/ssanderson/docker-py ↵Joffrey F2015-03-201-2/+8
|\ \ \ \ | |/ / / |/| | | | | | | into ssanderson-fix-port-host-net
| * | | MAINT: Don't re-index multiple times.Scott Sanderson2015-03-161-2/+2
| | | |
| * | | BUG: Don't barf on Client.port when no port settings provided.Scott Sanderson2015-03-161-0/+6
| | | |
* | | | Don't allow 'version' param in AutoVersionClient ctorJoffrey F2015-03-051-0/+4
| | | |
* | | | Streamline exceptions for auto version ; retrieve_server_version into ↵Joffrey F2015-03-051-7/+12
| | | | | | | | | | | | | | | | protected method
* | | | detect server version when version="auto"Tomas Tomecek2015-03-051-12/+38
| | | | | | | | | | | | | | | | | | | | | | | | heavily inspired by PR#281 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | | | Merge branch 'master' of github.com:docker/docker-pyJoffrey F2015-03-041-0/+6
|\ \ \ \
| * \ \ \ Merge pull request #502 from cpuguy83/498_dockerignore_special_namesJoffrey F2015-02-271-0/+6
| |\ \ \ \ | | | | | | | | | | | | Add special cases for .dockerignore
| | * | | | Add special cases for .dockerignoreBrian Goff2015-02-241-0/+6
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | Only call decode if Python 3.xJoffrey F2015-03-041-1/+3
| | | | |
* | | | | Merge branch 'py3-json' of https://github.com/ssanderson/docker-py into ↵Joffrey F2015-03-041-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | ssanderson-py3-json
| * | | | BUG: Fix errors in Python 3 from JSON-decoding bytes.Scott Sanderson2015-02-241-1/+1
| |/ / /
* | | | Update resolve_authconfig to bring it in line with Docker clientAanand Prasad2015-02-271-2/+1
|/ / / | | | | | | | | | | | | | | | | | | 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>
* | | Resolves #497 - add support for dockerfileDaniel Nephin2015-02-201-2/+8
|/ / | | | | | | Signed-off-by: Daniel Nephin <dnephin@gmail.com>
* | Added api_version propertyJoffrey F2015-02-121-0/+4
| |
* | Remove unused codeJoffrey F2015-02-121-7/+0
| |
* | Add decode parameter to be able to the the stats as a dictionaryChristophe Labouisse2015-02-121-2/+2
| |
* | Merge branch 'add-stats-api-support' of https://github.com/nir0s/docker-py ↵Joffrey F2015-02-121-0/+11
|\ \ | | | | | | | | | into nir0s-add-stats-api-support
| * | added version compliable checknir0s2015-02-121-0/+4
| | |
| * | removed aggregation for now and added a unit test. also using stream_helper nownir0s2015-02-121-19/+2
| | |
| * | added initial support for stats retrievalnir0s2015-02-111-0/+24
| | |
* | | * Moved _container_config to utils.create_container_configmemoryswapJoffrey F2015-02-111-133/+5
| | | | | | | | | | | | * memswap_limit can now be provided as a string, similar to mem_limit
* | | Added support for pid_mode paramJoffrey F2015-02-111-9/+13
| | |
* | | Merge pull request #480 from ggtools/eventsJoffrey F2015-02-111-3/+24
|\ \ \ | | | | | | | | Add missing options to the events command
| * | | Add a `decode` parameter to the events commandChristophe Labouisse2015-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will ensure compatibility with the previous versions of docker-py. Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
| * | | Add decoding to the eventsChristophe Labouisse2015-02-111-2/+5
| | | | | | | | | | | | | | | | Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
| * | | Fix flake8 issuesChristophe Labouisse2015-02-111-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
| * | | Add missing options to the events commandChristophe Labouisse2015-02-111-2/+20
| |/ / | | | | | | | | | | | | | | | | | | - Add since, until and filters parameters to `Client.events` - Add missing `events`command in the documentation Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
* | | read_only parameterread_only_rootfsJoffrey F2015-02-101-2/+8
|/ /
* | Merge pull request #482 from docker/rename_containerJoffrey F2015-02-101-12/+28
|\ \ | | | | | | New Client.rename() method
| * | Bumped default API version, fixed rename()Joffrey F2015-02-101-4/+12
| | |
| * | Added rename methodJoffrey F2015-02-101-9/+17
| | |
* | | Merge pull request #474 from gierschv/fix-build-remoteJoffrey F2015-02-101-0/+2
|\ \ \ | |/ / |/| | Fix crash when building from remote sources
| * | Fix crash when building from remote sourcesVincent Giersch2015-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Rename Client._timeout to timeout.Greg Taylor2015-02-041-3/+3
|/ /
* | Fix #458Joffrey F2015-02-011-1/+1
| |
* | Fix #466Joffrey F2015-02-011-4/+6
| |
* | Merge pull request #441 from dims/fix-log-streamsJoffrey F2015-02-011-28/+14
|\ \ | | | | | | Fix to enable streaming container logs reliably
| * | Fix to enable streaming container logs reliablyDavanum Srinivas2015-01-191-28/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Started a ubuntu container that just runs "ping 8.8.8.8" and tried the sample code in https://gist.github.com/dims/c3327f633c526847c8e5 to recreate the problem mentioned in: https://github.com/docker/docker-py/issues/300 To debug the problem i printed the byte array read in recvall when reading STREAM_HEADER_SIZE_BYTES and realized that the data being read was far ahead of the actual start of the header documented in the vnd.docker.raw-stream of the docker remote api. This is possibly because the requests/urllib3 is reading ahead a bit more and we shouldn't be trying to hack the internals of those projects. So just using the documented file-like response.raw is good enough for us to get the functionality we need which is being able to read for exactly where the stream header starts. With this change i can reliably stream the logs just like "docker logs --follow". Note that we still need to access the underlying socket to set the timeout to prevent read time outs. The original fix was for client.logs() only but on further review it made sense to replace all occurances of _multiplexed_socket_stream_helper with the new method.
* | | Add Support for Mac AddressJames Harris2015-01-211-4/+6
|/ / | | | | | | | | | | 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>
* | Revert noop changeJoffrey F2015-01-081-10/+9
| |
* | Merge branch 'master' of https://github.com/rmohr/docker-py into rmohr-masterJoffrey F2015-01-081-12/+19
|\ \
| * | Keep unix socket alive with python3Roman Mohr2014-12-211-12/+19
| |/
* | Fix for issue #443Joffrey F2015-01-081-10/+14
|/
* Use create_host_config in start (unifying parameter processing)0.7.0-releaseJoffrey F2014-12-181-72/+11
|
* Fix create_container environment parameter for python3Joffrey F2014-12-181-2/+2
|
* Merge pull request #427 from abanna/adding_multiple_dockercfg_supportJoffrey F2014-12-181-2/+6
|\ | | | | adding the ability to login with different dockercfg files.
| * adding the ability to login with different dockercfg files.Alex Banna2014-12-181-2/+6
| |
* | flake8 fails with F821 for unicode under python 3.4.2Davanum Srinivas2014-12-181-1/+2
|/