Commit Graph

2876 Commits

Author SHA1 Message Date
Joffrey F ab0f989154 Merge pull request #40 from denibertovic/issue-33
Fix issue 33
2013-09-06 09:23:34 -07:00
Deni Bertovic 49a3cb87b1 Merge branch 'master' of github.com:dotcloud/docker-py into issue-33
Conflicts:
	docker/client.py
2013-09-05 08:32:08 +02:00
Deni Bertovic 6c616792d4 updated README 2013-09-04 23:46:45 +02:00
Deni Bertovic f032ecfe47 Fixed #33 - make client commands more consistent 2013-09-04 15:53:37 +02:00
Joffrey F d47b45d860 Merge pull request #37 from aanand/set-attach-attributes
When creating a container, set Attach* attributes according to detach and stdin_open arguments
2013-09-03 19:29:38 -07:00
Joffrey F 76a34c5fd3 Merge pull request #36 from aanand/get-attach-socket
attach_socket() method for just getting the HTTP socket
2013-09-03 18:52:37 -07:00
Aanand Prasad 0b26b696e1 Implement client.copy(), which works much like export() 2013-09-03 13:30:33 -04:00
Aanand Prasad 31a2b40d8d Implement top() 2013-09-03 13:30:32 -04:00
Aanand Prasad fea6f1c197 Remove redundant status code check from _result() 2013-09-03 13:27:35 -04:00
Aanand Prasad 5a2edc1806 Remove custom error code handling 2013-09-03 13:27:35 -04:00
Aanand Prasad ddee3a5380 Enable overriding of APIError explanation. Override explanation for missing image in run(). 2013-09-03 13:27:35 -04:00
Aanand Prasad f35cc69994 Call _raise_for_status every time we make a request 2013-09-03 13:27:35 -04:00
Aanand Prasad 6d728157d6 Refactor HTTP error reporting
- `APIError` class extends `HTTPError`
- Custom error string logic moved into `APIError.__init__()`
- Conveniences: `explanation`, `is_client_error()`, `is_server_error()`
- Strip trailing newline from explanation
2013-09-03 13:27:35 -04:00
Aanand Prasad da3fe9cdaa attach_socket() method for just getting the HTTP socket 2013-09-03 13:24:59 -04:00
Aanand Prasad fdcc4d9a09 Set AttachStd* attributes according to detach and stdin_open commands, analogously to the docker cli 2013-09-01 01:02:00 -04:00
Joffrey F 6dff1efde7 Merge pull request #34 from ehazlett/privileged-containers
added privileged container support
2013-08-30 10:28:22 -07:00
Evan Hazlett ea087b7b15 added privileged container support 2013-08-30 09:35:09 -04:00
shin- c0d8b2ef09 Fixed tests 2013-08-28 18:39:26 +02:00
shin- 3a8b40c19b Bumped version to 0.1.5 2013-08-28 18:23:55 +02:00
shin- 4d02aa2228 create_container now accepts dict objects for the environment parameter. Fixes #20 2013-08-27 02:22:40 +02:00
shin- 96e8e55655 Fix for #30 (Client#build tag param now works properly) 2013-08-27 01:53:33 +02:00
shin- 81b870f523 Merge branch 'master' of https://github.com/dotcloud/docker-py 2013-08-27 01:32:52 +02:00
shin- 75d6f84e93 remove_container now raises an exception when encountering an error 2013-08-27 01:22:06 +02:00
Joffrey F 10491f4480 Merge pull request #31 from bwhaley/nocache
Add nocache build option
2013-08-15 05:03:19 -07:00
Ben Whaley 3f00c059d4 Add nocache build option 2013-08-14 16:48:54 -07:00
shin- 7380f3827f Merge branch 'master' of https://github.com/dotcloud/docker-py 2013-08-14 23:12:15 +02:00
shin- d0c54361d9 Use tempfiles instead of memfiles for build contexts 2013-08-14 23:11:53 +02:00
Joffrey F f3ff3925c6 Merge pull request #29 from raphdg/fix_shlex
Fixed python26 shlex split of unicode strings.
2013-08-14 07:20:40 -07:00
Raphaël De Giusti 579201bcf7 Fixed python26 shlex split of unicode strings.
Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import shlex
>>> cmd = u"/bin/bash echo 'Hello World'"
>>> shlex.split(cmd)
['/\x00\x00\x00b\x00\x00\x00i\x00\x00\x00n\x00\x00\x00/\x00\x00\x00b\x00\x00\x00a\x00\x00\x00s\x00\x00\x00h\x00\x00\x00',
'\x00\x00\x00e\x00\x00\x00c\x00\x00\x00h\x00\x00\x00o\x00\x00\x00',
'\x00\x00\x00\x00\x00\x00H\x00\x00\x00e\x00\x00\x00l\x00\x00\x00l\x00\x00\x00o\x00\x00\x00
\x00\x00\x00W\x00\x00\x00o\x00\x00\x00r\x00\x00\x00l\x00\x00\x00d\x00\x00\x00\x00\x00\x00']
>>> shlex.split(str(cmd))
['/bin/bash', 'echo', 'Hello World']
2013-08-14 08:27:42 +02:00
shin- c31ce82d2c Bumped to 0.1.4 2013-08-13 20:05:13 +02:00
Joffrey F f7b80659c6 Merge pull request #28 from dotcloud/17-add-unix-socket
27 - add support for unix sockets, the default configuration for docker
2013-08-13 10:48:02 -07:00
Nick Stinemates 2c27d9bba7 made unix sockets the default configuration and usage for the client library to reflect the changes made in 0.5.2. this change uses the hook in the requests Sessions object to associate unix:// paths with a set of custom pools and connections. the goal was to patch with as much reuse and interface compatibility to make the changes seamless to the end-user and so as to not introduce regressions on existing functionality. 2013-08-13 17:35:03 +00:00
Jérôme Petazzoni ecb1b4cf10 Add Apache 2.0 License 2013-08-07 11:39:59 -07:00
shin- 1b0af1d196 Bumped version to 0.1.3 2013-08-06 20:00:44 +02:00
shin- 17a6994e43 Docker client now tries to load the auth config. This is necessary to use the push command if API version is >1.0 2013-08-06 19:57:20 +02:00
shin- 4f7872da87 Fixed tests 2013-07-25 20:18:38 +02:00
shin- ebaa5efe72 Bumped version 2013-07-25 18:32:13 +02:00
shin- a12432fba2 Added 'quiet' param to Client.build 2013-07-25 18:27:44 +02:00
shin- aaa4b41007 Bumped version 2013-07-23 19:17:42 +02:00
Joffrey F ad311e0fd3 Merge pull request #22 from keeb/fix-portspec-gh21
fix gh#21 - 0.5.0 portspec changes break client.port() resulting in KeyE...
2013-07-23 09:32:25 -07:00
Nick Stinemates 177409968f fix gh#21 - 0.5.0 portspec changes break client.port() resulting in KeyError 2013-07-19 22:53:38 +00:00
shin- b82ef9cae7 Merge branch 'master' of https://github.com/dotcloud/docker-py 2013-07-17 17:30:17 +02:00
shin- c3a488f9c0 Removed tar contents printing in Client._tar 2013-07-17 17:29:54 +02:00
Joffrey F 9a15b6597c README.md: Client class is in the docker package 2013-07-16 18:38:51 +02:00
shin- 79a6889355 Bumped version 2013-07-16 18:32:11 +02:00
shin- 50b391e8af Updated README 2013-07-16 18:09:14 +02:00
shin- 5364ce7425 Updated ChangeLog 2013-07-16 17:59:07 +02:00
shin- 08698d69e2 Added version param in constructor to simplify use of different versions of the Docker API 2013-07-16 17:47:08 +02:00
shin- 1c618561f5 Clarify post_json method being internal (2) 2013-07-16 17:35:43 +02:00
shin- b252547b9c Clarify post_json method being internal 2013-07-16 17:34:48 +02:00