Commit Graph

1165 Commits

Author SHA1 Message Date
Joffrey F 4ec36c80a9 Only allow volume_driver param if API version >= 1.19 2015-06-18 20:38:52 +02:00
Joffrey F 26531f1f8d Enforce consistent style for push and pull methods 2015-06-18 20:38:52 +02:00
Joffrey F 38a6651ede small doc fixes 2015-06-18 20:38:52 +02:00
Joffrey F 93531e9cff Bumped version to 1.3.0 (dev) 2015-06-18 20:38:52 +02:00
Philipp Möller 3a32be79d3 Add and document a decode parameter for build
This makes the build method consistent with the events method and adds
some convenience.
2015-06-18 20:38:21 +02:00
Bradley Cicenas badc5b69ad Add raise_for_status check to push and pull methods
as underlying exceptions(such as push already in progress) will be hidden in the stream generator otherwise.
2015-06-18 20:38:21 +02:00
Luke Marsden 5fa7576e8c Add volume_driver param to client.create_container
- Add appropriate test which also asserts that volume names can be passed through to drivers.
- Add new param to docs.

Signed-off-by: Luke Marsden <luke@clusterhq.com>
2015-06-18 20:38:21 +02:00
Joffrey F e9802314aa Updated mkdocs to use the new pages index format 2015-06-18 20:38:07 +02:00
Joffrey F 89d5487285 Updated site_url value in mkdocs file 2015-06-18 20:14:37 +02:00
Joffrey F 6b9ea106d7 Fixed integration test 2015-06-18 19:58:01 +02:00
Joffrey F 6f343aa8ea Release 1.2.3 2015-06-18 19:50:31 +02:00
Joffrey F 6c92431c9e Merge branch '1.3.0-rc0' 2015-06-18 19:44:58 +02:00
Joffrey F f0a9c80a49 Updated ChangeLog for 1.2.3 2015-06-16 14:44:39 -07:00
Joffrey F fb5db84f0b Bump RC 2015-06-12 11:31:10 -07:00
Joffrey F 6e3dba99b7 Merge branch 'aanand-allow-binds-list' into 1.3.0-rc0 2015-06-12 11:29:56 -07:00
Aanand Prasad 1446b8c5ee Allow binds to be specified as a list of strings
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-12 12:36:59 -04:00
Ed Morley 9a5b7b2959 Docs: Update boot2docker shellinit example to use 'eval'
The boot2docker documentation has since changed the recommended way to
use shellinit - see boot2docker/boot2docker#786. The command also no
longer prints the export lines to the console, so have updated the
example output.
2015-06-10 14:32:49 +01:00
Aanand Prasad 7dd7625391 Allow any mode string to be passed into a volume bind
Volume binds now take a "mode" key, whose value can be any string.

"ro" is still supported. It is an error to specify both "ro" and "mode".

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-05 13:25:59 +01:00
Scott Sanderson a7c15a8700 Use functools.wraps for check_resource decorator.
This helps runtime introspection tools like the `help()` builting or
IPython's `?` operator correctly find the underlying method instead of
the decorator definition.
2015-06-02 11:00:00 -04:00
Giorgos Logiotatidis 739d875854 Fix pull parameter for docker server version < 1.7. 2015-06-01 23:18:27 +03:00
Giorgos Logiotatidis fd1722591b Set default value for pull to False on build(). Fixes 622. 2015-06-01 20:23:17 +03:00
Marko Mikulicic e96ebf8c98 Fix pinging an unauthenticated v2 registry 2015-05-29 00:58:49 +02:00
Darren Shepherd fb2b7078eb Allow extra_hosts to be a list too
The current map syntax does not allow the API equivalent of

    --add-host foo:1.1.1.1 --add-host foo:2.2.2.2

The above will map one hostname to two IPs.  The above is valid in Docker.
2015-05-27 08:46:14 -07:00
Joffrey F cf178ad3b1 Changelog WIP 2015-05-26 16:18:55 -07:00
Joffrey F 7c8e0ed070 Bumped version (rc) 2015-05-26 16:17:57 -07:00
Maxime Petazzoni be73aaf540 Merge pull request #612 from ibuildthecloud/fix-readonly
Typo in ReadonlyRootfs
2015-05-26 08:09:28 -07:00
Darren Shepherd 396af7adbe Typo in ReadonlyRootfs
read_only parameter does not work because the wrong name is sent to Docker
2015-05-25 20:23:29 -07:00
Matt Moore 9881628ff7 Update docker-py to use a more portable sense of HOME.
This makes docker-py consistent with Docker's newish way of establishing the path to .dockercfg:
   https://github.com/docker/docker/blob/master/pkg/homedir/homedir.go
2015-05-21 12:59:38 -07:00
Matt Bogosian 947febcbd8 Move image/container ID resolution to @check_resource decorator. 2015-05-20 15:37:40 -07:00
Joffrey F 7b2fd8cf5e Merge pull request #562 from smothiki/mems
make memory units compatible with native docker cli
2015-05-20 15:37:22 -07:00
Joffrey F 08444cf355 Merge branch 'tonicbupt-privilege' 2015-05-20 14:58:59 -07:00
Joffrey F abbbbfb2d6 Only allow privileged exec_create for API version >= 1.19 2015-05-20 14:58:47 -07:00
Joffrey F e1f93d95c9 Merge branch 'privilege' of https://github.com/tonicbupt/docker-py into tonicbupt-privilege 2015-05-20 14:54:40 -07:00
Joffrey F d600073cef Merge branch 'posita-raise-on-inspect-empty-string-602' 2015-05-20 14:47:27 -07:00
Joffrey F fe12dad21b Separate check_resource inspect tests 2015-05-20 14:46:51 -07:00
Joffrey F 9cdf1dc6ef Fixed check_resource decorator 2015-05-20 14:46:33 -07:00
Joffrey F 86297c825d Merge branch 'raise-on-inspect-empty-string-602' of https://github.com/posita/docker-py into posita-raise-on-inspect-empty-string-602 2015-05-20 14:37:44 -07:00
Joffrey F 4aa2fa649f Merge pull request #606 from bo0ts/patch-1
Remove non-existing argument
2015-05-20 10:14:25 -07:00
Philipp Moeller 488e14c560 Remove non-existing argument
There is no container argument in create_container_config. This is probably a leftover when this was copied from the Client.start documentation
2015-05-20 11:29:39 +02:00
Matt Bogosian de2f58d818 Fix #602. Raise ValueError on empty argument to inspect_{container,image}() methods. 2015-05-17 17:39:25 -07:00
Joffrey F f044b5e3f7 Merge branch 'master' of github.com:docker/docker-py 2015-05-13 13:24:08 -07:00
Joffrey F 62772b56ba Merge branch 'proppy-add-maintainer-file' 2015-05-13 13:23:53 -07:00
Joffrey F f8159087a6 Added Maxime to maintainers 2015-05-13 13:23:34 -07:00
Joffrey F 1991aa9971 Merge branch 'add-maintainer-file' of https://github.com/proppy/docker-py into proppy-add-maintainer-file 2015-05-13 13:22:35 -07:00
Joffrey F 6dd3217c3a Merge pull request #598 from HackToday/fixparameter
Fix the parameter mismatch
2015-05-12 13:37:43 -07:00
HackToday bf00acf854 Fix the parameter mismatch
Closes-Issue: #597
2015-05-12 14:40:12 +08:00
Maxime Petazzoni fc174769aa Fix typo in deprecated insert method. Fixes #595
s/fornat/format/
2015-05-11 09:45:31 -07:00
Joffrey F 329662c53e Merge pull request #593 from docker/deprecate_start_hostconfig
Deprecate start hostconfig
2015-05-08 14:32:42 -07:00
Joffrey F 5af442fb9b Removed instances of using host_config in start from docs and examples 2015-05-08 14:24:53 -07:00
Joffrey F 2fd2eebcb0 Added deprecation warning for host config in start 2015-05-08 14:00:58 -07:00