summaryrefslogtreecommitdiff
path: root/docker/utils/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add security_opt for create/startEric Windisch2015-03-241-3/+7
| | | | Signed-off-by: Eric Windisch <eric@windisch.us>
* Finish labels implementation, add tests and docsAanand Prasad2015-03-201-6/+5
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Implemented labels for docker-pyAndré Martins2015-03-171-2/+13
| | | | Signed-off-by: André Martins <martins@noironetworks.com>
* Merge pull request #488 from docker/memoryswapJoffrey F2015-02-111-0/+140
|\ | | | | Container config cleanup
| * * Moved _container_config to utils.create_container_configmemoryswapJoffrey F2015-02-111-0/+140
| | | | | | | | * memswap_limit can now be provided as a string, similar to mem_limit
* | Merge pull request #486 from nir0s/fix-old-style-string-formattingJoffrey F2015-02-111-8/+10
|\ \ | |/ |/| Fix old style string formatting
| * fixesnir0s2015-02-111-2/+2
| |
| * fixed string formatting in utilsnir0s2015-02-111-8/+10
| |
* | Added support for pid_mode paramJoffrey F2015-02-111-1/+8
| |
* | Merge pull request #480 from ggtools/eventsJoffrey F2015-02-111-0/+8
|\ \ | | | | | | Add missing options to the events command
| * | Fix datetime issue with Python 2.6Christophe Labouisse2015-02-111-1/+3
| | | | | | | | | | | | Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
| * | Add missing options to the events commandChristophe Labouisse2015-02-111-0/+6
| |/ | | | | | | | | | | | | - 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-1/+4
|/
* fix create_host_config methodbernardopericacho2015-01-161-5/+5
|
* Use create_host_config in start (unifying parameter processing)0.7.0-releaseJoffrey F2014-12-181-7/+10
|
* Added support for extra_hosts in create_host_configJoffrey F2014-12-181-1/+11
|
* Fixed VolumesFrom bugJoffrey F2014-12-171-1/+1
|
* Added create_host_config helper in docker.utilsJoffrey F2014-12-171-0/+67
|
* Merge pull request #429 from dims/masterJoffrey F2014-12-171-1/+1
|\ | | | | Devices should be separated by colon separated string
| * Devices should be separated by colon separated stringDavanum Srinivas2014-12-171-1/+1
| | | | | | | | | | | | Totally bad test :( (written by me). The documentation and code should match now. Many thanks to pranavs18 for spotting the error and proposing the fix.
* | Merge pull request #271 from robertglen/byteIO-seekfixJoffrey F2014-12-151-0/+2
|\ \ | |/ |/| Fixed bug in utils.mkbuildcontext for BytesIO Dockerfiles
| * Should be done for StringIO objects as wellRobert Glen2014-07-101-0/+1
| |
| * Fixed bug in utils.mkbuildcontext for BytesIO DockerfilesRobert Glen2014-07-091-0/+1
| | | | | | | | | | | | - resetting dockerfile seek position to 0 after dockerfile.getvalue() is called - prevents traceback on line utils.py line 43 - 'IOError("end of file reached")' in tarfile.py
* | Walk file tree in order for deterministic buildsMarcus Cobden2014-11-041-1/+2
| | | | | | Python's `os.walk` does not order the lists of files and directories it returns, so in order to produce a consistent build context tarfile, they should be ordered.
* | Merge branch 'filters' of github.com:irachex/docker-py into irachex-filtersJoffrey F2014-11-031-0/+12
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: docker/utils/__init__.py docker/utils/utils.py tests/utils_test.py
| * | Add support for filtering images and containersHuayi Zhang2014-10-051-0/+12
| | | | | | | | | | | | | | | | | | | | | [`filters` is a json encoded value of the filters (a map[string][string]) to process on the images list. ][1] The tricky thing is that we must convert boolean value to string and any filter value to list to make a `map[string][string]` json format [1]: https://docs.docker.com/reference/api/docker_remote_api_v1.14/#list-images
* | | utils: add kwargs_from_envJohan Euphrosine2014-10-291-0/+22
| | |
* | | Merge branch 'support-devices' of github.com:dims/docker-py into ↵Joffrey F2014-10-291-0/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | dims-support-devices Conflicts: README.md
| * | | Ability to specify Host Devices during container startDavanum Srinivas2014-10-241-0/+20
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The command line and daemon started supporting --device parameter during docker start a while ago in the following commit: docker/docker@e855c4b Since the command line looks like this, --device=[] Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc) This patch allows a list of strings to be passed into the start() method and we parse out the 3 components just like in the above mentioned commit
* | | Fix long lineSøren Gjesse2014-10-211-1/+2
| | |
* | | Add directories to the Docker contextSøren Gjesse2014-10-211-0/+3
|/ / | | | | | | | | | | | | | | This change adds both files and directories to the tra-file for the Docker context. Previously only files where added. The context will now also contain empty directoryes and symlinks to directories.
* | Added a timeout to the https pingKevin Littlejohn2014-07-311-1/+1
| | | | | | For those not using https who might have it firewalled, this request without a timeout causes significant delay. Adding a moderately generous timeout shouldn't affect anyone negatively, but will make things a bit nicer otherwise.
* | Merge pull request #268 from brutasse/265-dockerignoreJoffrey F2014-07-231-2/+23
|\ \ | |/ |/| Add support for .dockerignore
| * Add support for .dockerignoreBruno Renié2014-07-231-2/+23
| | | | | | | | | | | | | | | | Fixes #265. Implementation is a bit more elaborate than docker's implementation and matches with the one proposed in dotcloud/docker#6869 to handle permission issues more nicely.
* | Support http+unix protocolJoffrey F2014-07-031-0/+2
| |
* | Implemented complete parse_host method to handle all accepted values of ↵Joffrey F2014-07-031-1/+66
|/ | | | Client's base_url. Unit tests
* Fixed port bindings conversion to support legacy port bindings. Fixes #135Joffrey F2014-06-211-0/+7
|
* Python, not GoJoffrey F2014-06-171-2/+2
|
* pep8 fixJoffrey F2014-05-131-0/+2
|
* namingJoffrey F2014-05-121-1/+1
|
* Support for legacy volume binds (ansible compat)Joffrey F2014-05-121-0/+10
|
* parse_repository_tag function and accompanying testLuka Stojanovic2014-03-241-0/+12
|
* Fix API version comparisonDaniel Graña2014-03-181-1/+20
|
* A ping should be successful if status_code is less than 400Nicolas Delaby2014-01-311-1/+1
|
* replace status with status_code as defined by requests APINicolas Delaby2014-01-311-1/+2
| | | | | Move this statement in `else` clause to make sure the try except block doesn't catch coding errors.
* Improved port binding conversion rules, fixed bugs, added unit testsshin-2013-12-091-0/+34
|
* Refactoring, Python 3 compatibility, Tests working with python 3, cleaned up ↵shin-2013-10-151-0/+62
imports.