Commit Graph

50 Commits

Author SHA1 Message Date
Joffrey F b46e4a398b Modify expand_registry_url to support v2 private registries. 2015-04-22 13:56:35 -07:00
Yaroslav Molochko 48a19c3129 IPC sharing implementation 2015-03-30 09:29:18 +03:00
Joffrey F 1845d3b13f Added some type and version checks; removed security_opt from container_config (as this is invalid) 2015-03-25 15:19:06 -07:00
Eric Windisch 24b0cab2dc Add security_opt for create/start
Signed-off-by: Eric Windisch <eric@windisch.us>
2015-03-24 17:07:53 -04:00
Aanand Prasad bd72bd13c7 Finish labels implementation, add tests and docs
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-20 15:42:10 -07:00
André Martins d018e37229 Implemented labels for docker-py
Signed-off-by: André Martins <martins@noironetworks.com>
2015-03-17 18:52:25 +00:00
Joffrey F 59d52604b1 Merge pull request #488 from docker/memoryswap
Container config cleanup
2015-02-11 14:10:45 -08:00
Joffrey F 5f552fd55b Merge pull request #486 from nir0s/fix-old-style-string-formatting
Fix old style string formatting
2015-02-11 14:06:56 -08:00
Joffrey F e2233fcee1 * Moved _container_config to utils.create_container_config
* memswap_limit can now be provided as a string, similar to mem_limit
2015-02-11 14:02:21 -08:00
nir0s ea2148ade1 fixes 2015-02-11 22:26:23 +02:00
nir0s 53b5ed2178 fixed string formatting in utils 2015-02-11 22:24:06 +02:00
Joffrey F af492c3057 Added support for pid_mode param 2015-02-11 12:15:39 -08:00
Joffrey F 22dd8d78ea Merge pull request #480 from ggtools/events
Add missing options to the events command
2015-02-11 11:13:52 -08:00
Christophe Labouisse 53b1bb41ac Fix datetime issue with Python 2.6
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-02-11 07:25:59 +01:00
Christophe Labouisse a07bd28077 Add missing options to the events command
- Add since, until and filters parameters to `Client.events`
- Add missing `events`command in the documentation

Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-02-11 07:25:59 +01:00
Joffrey F e379e8ae24 read_only parameter 2015-02-10 16:13:09 -08:00
bernardopericacho 3574167fb0 fix create_host_config method 2015-01-16 15:25:42 +01:00
Joffrey F 2218dbaa67 Use create_host_config in start (unifying parameter processing) 2014-12-18 18:03:27 -08:00
Joffrey F 29c67c3a05 Added support for extra_hosts in create_host_config 2014-12-18 11:20:31 -08:00
Joffrey F e1401c5573 Fixed VolumesFrom bug 2014-12-17 11:44:51 -08:00
Joffrey F c9f9157ea8 Added create_host_config helper in docker.utils 2014-12-17 11:44:31 -08:00
Joffrey F f2ba7f9b9d Merge pull request #429 from dims/master
Devices should be separated by colon separated string
2014-12-17 11:32:58 -08:00
Davanum Srinivas 3a51d3fe0b Devices should be separated by colon separated string
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.
2014-12-17 07:35:07 -05:00
Joffrey F 7fcddc22ce Merge pull request #271 from robertglen/byteIO-seekfix
Fixed bug in utils.mkbuildcontext for BytesIO Dockerfiles
2014-12-15 16:26:52 -08:00
Marcus Cobden dacaa583fb Walk file tree in order for deterministic builds
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.
2014-11-04 10:02:24 +00:00
Joffrey F c4bb57286a Merge branch 'filters' of github.com:irachex/docker-py into irachex-filters
Conflicts:
	docker/utils/__init__.py
	docker/utils/utils.py
	tests/utils_test.py
2014-11-03 20:07:04 +01:00
Johan Euphrosine 74e7a67898 utils: add kwargs_from_env 2014-10-29 10:05:49 -07:00
Joffrey F 75d8ff16e4 Merge branch 'support-devices' of github.com:dims/docker-py into dims-support-devices
Conflicts:
	README.md
2014-10-29 17:23:42 +01:00
Davanum Srinivas 7a917cc7a0 Ability to specify Host Devices during container start
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
2014-10-24 11:43:30 -04:00
Søren Gjesse a6af1b7fd4 Fix long line 2014-10-21 14:20:37 +02:00
Søren Gjesse 60edfe84b8 Add directories to the Docker context
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.
2014-10-21 14:01:57 +02:00
Huayi Zhang 589e7006d5 Add support for filtering images and containers
[`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
2014-10-05 23:18:48 +08:00
Kevin Littlejohn e607eaa19c Added a timeout to the https ping
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.
2014-07-31 11:08:39 +10:00
Joffrey F 8e45264907 Merge pull request #268 from brutasse/265-dockerignore
Add support for .dockerignore
2014-07-23 20:25:07 +02:00
Bruno Renié 87b4d327d1 Add support for .dockerignore
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.
2014-07-23 15:05:53 +02:00
Robert Glen adcfa4b29e Should be done for StringIO objects as well 2014-07-10 09:06:44 -07:00
Robert Glen d0e984347a Fixed bug in utils.mkbuildcontext for BytesIO Dockerfiles
- 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
2014-07-09 16:29:37 -07:00
Joffrey F 53de7547e1 Support http+unix protocol 2014-07-03 04:20:42 +02:00
Joffrey F cf050d28a0 Implemented complete parse_host method to handle all accepted values of Client's base_url. Unit tests 2014-07-03 04:11:34 +02:00
Joffrey F a8e03d32bb Fixed port bindings conversion to support legacy port bindings. Fixes #135 2014-06-21 02:37:57 +02:00
Joffrey F de066a1ae6 Python, not Go 2014-06-17 03:21:42 +02:00
Joffrey F f9c84cbe9f pep8 fix 2014-05-13 17:58:22 +02:00
Joffrey F 92c9a89f09 naming 2014-05-12 21:36:41 +02:00
Joffrey F 3959747620 Support for legacy volume binds (ansible compat) 2014-05-12 21:32:01 +02:00
Luka Stojanovic 030516eb29 parse_repository_tag function and accompanying test 2014-03-24 16:10:31 +01:00
Daniel Graña 159a42ad5f Fix API version comparison 2014-03-18 11:00:16 -03:00
Nicolas Delaby 51ead88e2d A ping should be successful if status_code is less than 400 2014-01-31 16:12:01 +01:00
Nicolas Delaby 0903ea3dd8 replace status with status_code as defined by requests API
Move this statement in `else` clause to make sure the try except block doesn't catch
coding errors.
2014-01-31 16:10:10 +01:00
shin- 89f2c58918 Improved port binding conversion rules, fixed bugs, added unit tests 2013-12-09 17:45:12 +01:00
shin- 0808905636 Refactoring, Python 3 compatibility, Tests working with python 3, cleaned up imports. 2013-10-15 19:19:20 +02:00