Commit Graph

3158 Commits

Author SHA1 Message Date
Maxime Petazzoni f344d8e65f Support naming containers when creating them
Add support for passing in the name parameter to the call to
/containers/create to name the created container (API v1.6 feature).

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-11-06 17:02:38 -08:00
Aanand Prasad bd938b5879 Use websockets by passing 'ws' param to attach_socket 2013-11-06 17:33:37 +00:00
Paul Tagliamonte 9a98e7fc8c Add events endpoint to the Client
This is a bit of a hack; I added a method (and did a slight refactor of
 the old one) to handle getting the raw socket from the requests
 request. If the attach_sockets method isn't public, I'd suggest
 removing it entirely for a slightly more general one.

 This also needs some attention paid to validating legnth, and properly
 parsing the returned data by using the length.

Signed-off-by: Paul Tagliamonte <tag@pault.ag>
2013-11-05 22:20:50 -05:00
Joffrey F 3aa51d52d0 Merge pull request #76 from rca/port_bindings
Port bindings
2013-11-05 10:11:39 -08:00
Roberto Aguilar f62cee4451 Updated README to include /tcp in port binding doc 2013-11-04 15:03:06 -08:00
Roberto Aguilar 6047c581df Updated README 2013-11-04 14:45:13 -08:00
Roberto Aguilar 5d6bf51b4f Added Docker 0.6.5 ports compatibility 2013-11-04 14:12:30 -08:00
shin- 28b262337a Bumped version to 0.2.2 2013-10-24 18:36:37 +02:00
shin- 41750ea172 Merged 2013-10-23 20:04:15 +02:00
shin- e56bc51fe2 Fixed ImportErrors / package structure 2013-10-23 20:03:04 +02:00
Joffrey F e44b59f7ce Merge pull request #69 from gatoralli/patch-1
Fixed typo
2013-10-23 10:48:52 -07:00
Joffrey F f2cd346e8b Merge pull request #68 from tutumcloud/master
fix import ping function used when pushing an image
2013-10-20 10:01:04 -07:00
Jason Sommer b438d028dc Fixed typo 2013-10-20 05:25:19 -05:00
Fernando 48604fd63a fix import ping function used when pushing an image 2013-10-19 18:27:48 -03:00
shin- 8be4c1f0d3 command param in create_container is optional (for images that come with a predefined default command) 2013-10-16 17:34:46 +02:00
shin- 64cdc11b77 Merge branch 'master' of https://github.com/dotcloud/docker-py 2013-10-16 17:31:34 +02:00
shin- 97bd69162a Added support for unix:/// protocol (default for docker CLI) 2013-10-16 17:30:57 +02:00
Joffrey F c31fcaf163 Added travis build status to README 2013-10-15 21:22:04 +02:00
shin- acd2607407 Flake8 compliance + flake8 tests in tox.ini 2013-10-15 21:15:01 +02:00
shin- 86b341ddf9 Added travis.yml file 2013-10-15 19:30:45 +02:00
shin- f82506e942 Merge branch 'master' of https://github.com/dotcloud/docker-py 2013-10-15 19:20:03 +02:00
shin- 0808905636 Refactoring, Python 3 compatibility, Tests working with python 3, cleaned up imports. 2013-10-15 19:19:20 +02:00
Joffrey F 6fe13a3b84 Merge pull request #63 from aanand/remove-custom-404-message
Remove custom error message for image 404
2013-10-14 07:54:25 -07:00
shin- 07d791d50c Moved docstrings into README.md for consistency. 2013-10-14 16:39:52 +02:00
shin- cf46c4d2d9 Merge branch 'doc_fix' of git://github.com/kiorky/docker-py into kiorky-doc_fix 2013-10-14 16:31:08 +02:00
shin- c79045b43c Fix: push on private repositories. 2013-10-09 22:23:04 +02:00
Aanand Prasad 0739be1565 Remove custom error message for image 404 2013-10-03 15:15:22 +01:00
Aanand Prasad cf35b38433 Support https:// URLs (replacing with wss://) when attaching websocket 2013-10-03 14:44:33 +01:00
Aanand Prasad 6e659ba12a Move creation of websocket connection to its own method, so subclasses can override 2013-10-03 14:44:33 +01:00
Aanand Prasad c2d867b117 Implement attach_websocket() for attaching with WebSockets instead of HTTP streaming 2013-10-03 14:44:33 +01:00
Deni Bertovic 128cdb9112 fixed test list_containers to account for upstream changes 2013-10-03 11:56:44 +02:00
Deni Bertovic afbfc703ca integration test fix
make the mount point for shared.txt reside in the /tmp/ folder
because if it resides in the lib folder docker sets the owner of the
folder as root inside the container so then when the container exists
the test fails to cleanup and remove the shared.txt file, and breaks git as well.
2013-10-03 11:55:02 +02:00
Deni Bertovic 1ce8dc962c python3 fixes
Fixed imports to be compatible with python3 on various places in the client lib
and in the tests themselves.
2013-10-03 11:55:02 +02:00
Deni Bertovic 7fbc41ea7f removed unused FAKE_INSPECT_DATA 2013-10-03 11:51:12 +02:00
Deni Bertovic 5fe16773d9 fixed exception handling in _raise_for_status 2013-10-03 11:51:12 +02:00
Deni Bertovic 7c80127eb7 refactored tests
Using the mock library. Checking that every Client method gets
tested for not raising an Exception and for construting the request
params correctly.
2013-10-03 11:51:12 +02:00
Deni Bertovic 320fcdeed9 added mock to requirements 2013-10-03 11:51:12 +02:00
Deni Bertovic 80e11964f1 initial import of unit test and mocks for the docker api 2013-10-03 11:51:12 +02:00
Deni Bertovic 8047fb4cb4 reamed test.py to integration_test.py 2013-10-03 11:51:12 +02:00
Mathieu Le Marec - Pasquet 64f7807fbe Documentation for binds 2013-09-30 23:53:47 +02:00
shin- 26b291bd32 only_ids in /containers/ps removed, filter on client side 2013-09-30 20:11:42 +02:00
shin- 6c55b63f22 Removed logger dependency (no warnings) + do not break push for API versions < 1.5 2013-09-30 19:57:10 +02:00
Mathieu Le Marec - Pasquet b2c2a1b87f Fix: authorized but warned non loggued pull/push 2013-09-30 18:17:55 +02:00
Joffrey F fadc6f2f42 Merge pull request #56 from kiorky/import_image_tarball
support tarball imports
2013-09-30 09:04:07 -07:00
Mathieu Le Marec - Pasquet 2ecc7990cb support tarball imports 2013-09-30 18:00:06 +02:00
Joffrey F 3288e9f9b0 Merge pull request #51 from webitup/master
Support the "-rm" parameter for the build method
2013-09-30 08:47:25 -07:00
Joffrey F 79beddda55 Merge pull request #58 from micahhausler/master
Removed unused param in README
2013-09-29 18:57:35 -07:00
micahhausler 1ca7f2370a Removed unused param 2013-09-29 17:19:52 -04:00
dmp 8c3900ecc5 Update README (rm param in build method) 2013-09-28 15:49:01 +02:00
dmp 0c41f6ff9b Support rm parameter for build 2013-09-28 15:42:43 +02:00