summaryrefslogtreecommitdiff
path: root/docker/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | volumes_from is now a list from v.1.10Nicolas Delaby2014-04-241-2/+2
| | | | |
| * | | | Warn if user is using argument that will be ignoredNicolas Delaby2014-04-241-0/+11
| | | | |
| * | | | raise instead of warnNicolas Delaby2014-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | because user must know its code will not behave as expected if used against version >= v1.10.
| * | | | Do not ignore falsy valuesNicolas Delaby2014-04-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If user pass empty strings or empty lists, the deprecation policy will be ignored. Check instead if those arguments are not the default.
| * | | | From api 1.10 dns and volumes should be transmitted to start()Nicolas Delaby2014-04-111-1/+19
| | | | |
* | | | | Merge pull request #211 from aanand/relative-errors-importsJoffrey F2014-04-231-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Relative 'errors' imports, for consistency
| * | | | | Relative 'errors' imports, for consistencyAanand Prasad2014-04-231-1/+1
| | |/ / / | |/| | |
* | | | | Merge pull request #198 from fcoelho/fix-volumes-fromJoffrey F2014-04-231-2/+6
|\ \ \ \ \ | |/ / / / |/| | | | Sanitize create_container input for volumes_from
| * | | | Sanitize create_container inputFelipe Bessa Coelho2014-04-091-2/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | Client.create_container takes a volumes_from argument that should be: a string, a list of strings, or None. If an empty list or dict is passed instead, the docker daemon returns a 406 Client Error: Not Acceptable
* | | | fixes #175, fix flake8 errosRyan Wallner2014-04-161-1/+5
|/ / /
* | | Moved APIError exception to docker.errors module.Evgeniy L2014-04-071-36/+2
| | |
* | | Create scope for docker client specific errorsEvgeniy L2014-04-061-1/+1
|/ / | | | | | | | | | | | | | | | | With more granular and specific exceptions user will be able to handle errors properly. Also changed raising of Exception to more specific TypeError which python raises in case of wrong arguments.
* | Merge branch 'volumes-from-as-list' of github.com:blackrobot/docker-py into ↵shin-2014-04-041-0/+3
|\ \ | | | | | | | | | blackrobot-volumes-from-as-list
| * | Ensure that volumes_from existsDamon Jablons2014-04-011-1/+1
| | |
| * | Allow volumes_from to be an iterableDamon Jablons2014-04-011-0/+3
| | |
* | | Updated unit tests API version, flake8 fixesshin-2014-04-041-1/+3
| | |
* | | Make sure the build command in the client sends the auth credentials along. ↵Joseph Schorr2014-04-041-3/+14
| | | | | | | | | | | | Required for "FROM " lines that pull from private registries
* | | Fixed multiplexed_socket_stream_helpershin-2014-04-041-19/+17
| | |
* | | Merge branch 'PY3_fixes' of github.com:macobo/docker-py into macobo-PY3_fixesshin-2014-04-041-3/+11
|\ \ \ | |/ / |/| |
| * | Styling as per comment, decode to utf-8, join rather concat stringsKarl-Aksel Puulmann2014-03-111-5/+7
| | |
| * | Python 3 fixesKarl-Aksel Puulmann2014-03-111-2/+8
| | |
* | | don't yield blank linesMatt Way2014-03-301-1/+2
| |/ |/|
* | Use requests to read chunk data instead of parsing the raw streamDarren Shepherd2014-03-191-11/+2
| | | | | | | | | | | | The previous code had a bug in which it assumed that the chunk data had no newlines in it. In 0.9.0 newlines were added to the stream results, which exposed this bug.
* | Ensure that stream=True is passed to requests when version >= 1.8Darren Shepherd2014-03-191-1/+4
| |
* | remove reference to uninitialized variable and extra parameter in function callDaniel Graña2014-03-181-2/+2
| |
* | Support 'Domainname' in container creationJens Deppe2014-03-101-3/+4
|/
* Fix events() streaming by using _stream_helper()Maxime Petazzoni2014-02-211-14/+1
| | | | Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
* Fix build() streaming and stream methods cleanupMaxime Petazzoni2014-02-211-19/+22
| | | | Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
* Fix APIError for requests 1.1Chris St. Pierre2014-02-101-1/+4
| | | | | | | | requests 1.1, which is what's available on CentOS 6, doesn't support passing the response code as a keyword argument. It can be set after the fact on both requests 1.1 and 1.2. Docker-DCO-1.1-Signed-off-by: Chris St. Pierre <chris.a.st.pierre@gmail.com> (github: stpierre)
* Support remote API v1.8 (and make it the default)Maxime Petazzoni2014-02-051-2/+5
| | | | Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
* Fixed malformatted request when using empty list in create_container()Anthony Baire2014-02-041-2/+2
| | | | | | | | create_container() sends a malformatted request when volumes==[] or ports==[], causing error 500 "create: ExportEnv json: cannot unmarshal array into Go value of type map" The empty lists must be converted into a dict (or removed)
* Merge pull request #156 from dmiyakawa/masterJoffrey F2014-01-311-0/+2
|\ | | | | Allow copy() to accept dictionary like diff()
| * Allow copy() to accept dictionary like diff()Daisuke Miyakawa2014-01-311-0/+2
| | | | | | | | | | | | | | Client.diff() silently convert container as a dictionary to container['Id'] while Client.copy() does not. This change makes copy() do the same job.
* | Fix _stream_result concatenating bytes with strBen Firshman2014-01-281-1/+1
|/ | | | | Without this option, requests returns lines as bytes on Python 3 which can't be concatenated with the str '\n' in the yield.
* Merge pull request #151 from ibuildthecloud/http-unix-schemeJoffrey F2014-01-271-3/+5
|\ | | | | Support requests >=2.1.0
| * Support requests >=2.1.0Darren Shepherd2014-01-261-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting with requests 2.1.0 non-HTTP scheme URLs are not parsed anymore. The net effect of this is that when using the unix socket in docker-py no query string params are passed in the URL. This change makes docker-py internally use the scheme http+unix to indicate to requests that this is still a HTTP URL and should be parsed. Users of docker-py can still specify 'unix:' as the base_url. The following forms of base_url are accepted. http+unix://var/run/docker.sock unix://var/run/docker.sock unix:///var/run/docker.sock http://hostname tcp://hostname
* | Merge pull request #145 from aanand/set-stdinonceJoffrey F2014-01-271-0/+3
|\ \ | | | | | | If attaching to stdin, set StdinOnce, as per the docker CLI.
| * | If attaching to stdin, set StdinOnce, as per the docker CLI.Aanand Prasad2014-01-201-0/+3
| |/
* | Allow links to specified as (name, alias) tuplesBen Firshman2014-01-271-1/+4
|/
* Add working_dir option to create_containerBen Firshman2014-01-191-4/+5
|
* Add cpu_shares option to create_containerBen Firshman2014-01-191-4/+7
|
* Add entrypoint option to create_containerBen Firshman2014-01-191-4/+6
|
* Merge branch 'master' of git://github.com/dotcloud/docker-pyshin-2014-01-161-87/+108
|\
| * Merge pull request #119 from ureyes84/masterJoffrey F2014-01-161-6/+6
| |\ | | | | | | Updated port function
| | * Shortened linesUlises Reyes2013-12-141-5/+5
| | |
| | * Updated the port function in order to parse the new NetworkSettings Port ↵Ulises Reyes2013-12-141-6/+6
| | | | | | | | | | | | dict (fixes #88)
| * | Default to /tcp for port definitions in create_container()Maxime Petazzoni2014-01-161-5/+2
| | | | | | | | | | | | | | | | | | Fixes #141. Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
| * | Merge pull request #138 from aanand/container-output-without-logsMaxime Petazzoni2014-01-161-26/+26
| |\ \ | | | | | | | | container_output() method for streaming the output without logs=1
| | * | attach() method now parses multiplexing framesAanand Prasad2014-01-161-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous version of `attach` didn't look like it was doing anything useful, as it just yielded 4096-byte chunks of raw /attach output, without doing any frame parsing. Now `attach` is identical to `logs`, except that by default it doesn't show historical output. `logs` is now a wrapper around `attach` which sets `logs=True`, and its behaviour is unchanged.
| * | | Use relative importsAanand Prasad2014-01-161-3/+3
| | | |