Darren Shepherd
31f48d718d
Update to requests==2.2.1
2014-01-27 09:09:16 -07:00
Darren Shepherd
cf946ff27b
flake8 fixes
...
Additionally this change should make moving to /v1.8 slightly less painful
2014-01-26 16:52:14 -07:00
Darren Shepherd
89922efbac
Support requests >=2.1.0
...
Starting with requests 2.1.0 non-HTTP scheme URLs are not parsed anymore.
The net effect of this is that when using the unix socket in docker-py no
query string params are passed in the URL. This change makes docker-py
internally use the scheme http+unix to indicate to requests that this is
still a HTTP URL and should be parsed.
Users of docker-py can still specify 'unix:' as the base_url. The
following forms of base_url are accepted.
http+unix://var/run/docker.sock
unix://var/run/docker.sock
unix:///var/run/docker.sock
http://hostname
tcp://hostname
2014-01-26 16:28:47 -07:00
Joffrey F
3ad4a442be
Merge pull request #146 from felixhummel/fix-readme-binds
...
fix "binds" docs: { host_dir: docker_dir }
2014-01-25 11:32:37 -08:00
Felix Hummel
eefcb065b0
fix "binds" docs: { host_dir: docker_dir }
...
Not the other way around.
2014-01-25 19:04:32 +01:00
Joffrey F
236bb5f09e
Merge pull request #144 from bfirsh/add-missing-create-container-options
...
Add entrypoint, cpu_shares and working_dir options to create_container
2014-01-20 07:31:38 -08:00
Ben Firshman
4bc5d27e51
Add working_dir option to create_container
2014-01-19 16:41:40 +00:00
Ben Firshman
ab2f7a5e38
Add cpu_shares option to create_container
2014-01-19 16:41:25 +00:00
Ben Firshman
8e8b355acd
Add entrypoint option to create_container
2014-01-19 16:41:08 +00:00
shin-
477831334c
Merge branch 'master' of git://github.com/dotcloud/docker-py
2014-01-16 20:26:06 +01:00
shin-
33f5ac57d8
Removed data argument in import_image (unused?)
2014-01-16 20:25:26 +01:00
shin-
8a5cd6ae65
Merge branch 'feature/image-import' of github.com:tarnfeld/docker-py into tarnfeld-feature/image-import
2014-01-16 20:22:33 +01:00
Joffrey F
4bf75ded43
Merge pull request #119 from ureyes84/master
...
Updated port function
2014-01-16 11:19:34 -08:00
Joffrey F
acbd0661fd
Merge pull request #143 from mpetazzoni/tcp-default-proto
...
Default to /tcp for port definitions in create_container()
2014-01-16 11:16:14 -08:00
Maxime Petazzoni
dad95ba679
Default to /tcp for port definitions in create_container()
...
Fixes #141 .
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2014-01-16 10:23:02 -08:00
Maxime Petazzoni
77edd8b601
Merge pull request #138 from aanand/container-output-without-logs
...
container_output() method for streaming the output without logs=1
2014-01-16 09:05:46 -08:00
Maxime Petazzoni
7aba0126cb
Merge pull request #142 from aanand/use-relative-imports
...
Use relative imports
2014-01-16 09:05:14 -08:00
Aanand Prasad
cea085f046
Use relative imports
2014-01-16 13:28:00 +00:00
Aanand Prasad
3cb6482f8a
attach() method now parses multiplexing frames
...
The previous version of `attach` didn't look like it was doing
anything useful, as it just yielded 4096-byte chunks of raw /attach
output, without doing any frame parsing.
Now `attach` is identical to `logs`, except that by default it
doesn't show historical output. `logs` is now a wrapper around
`attach` which sets `logs=True`, and its behaviour is unchanged.
2014-01-16 10:56:17 +00:00
Maxime Petazzoni
d73901a7ed
Merge pull request #140 from aanand/sensible-url-handling
...
Sensible url handling
2014-01-14 10:13:09 -08:00
Aanand Prasad
688554998a
Accept base_url of None
...
This makes it very simple to get identical behaviour to the CLI:
client = Client(os.environ.get('DOCKER_HOST'))
2014-01-14 17:19:39 +00:00
Joffrey F
ebddf043e7
Merge pull request #139 from aanand/no-timeout-on-build
...
Configurable timeout on build(), defaults to None
2014-01-14 09:16:40 -08:00
Aanand Prasad
96932fc1cb
Handle tcp:// URLs
...
This means docker-py will do the Right Thing if the base url is set
using the new `DOCKER_HOST` environment variable, for example.
(http://docs.docker.io/en/latest/commandline/cli/ )
2014-01-14 17:14:27 +00:00
Aanand Prasad
dac4211a85
Break down _post() parameters one-per-line in build()
2014-01-14 15:25:29 +00:00
Aanand Prasad
732b4378ae
Configurable timeout on build(), defaults to None
...
Many commands used in Dockerfiles hang for an extended period of time
without producing any output, which will result in a socket timeout.
Accordingly, it makes sense for build() to specify no timeout by
default.
2014-01-14 13:58:51 +00:00
Joffrey F
2ac5cca84d
Merge pull request #120 from mpetazzoni/improve-auth
...
Rework auth config loading and use of auth data for login/pull/push
2014-01-09 11:00:55 -08:00
Maxime Petazzoni
32ad01e110
Rework auth config loading and use of auth data for login/pull/push
...
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2014-01-07 15:30:50 -08:00
Maxime Petazzoni
0bce148062
Merge pull request #134 from ticosax/improve-trove-classification
...
Declare explicitly supported python versions
2014-01-07 13:37:02 -08:00
Nicolas Delaby
700fbd3df7
Declare explicitly supported python versions
2014-01-07 15:08:32 +01:00
Maxime Petazzoni
2891c63870
Merge pull request #133 from namin/network-disabled-opt
...
Option to disable network when creating container.
2014-01-05 22:25:51 -08:00
Nada Amin
d1427d38be
Option to disable network when creating container.
2014-01-03 16:20:45 +00:00
Maxime Petazzoni
86a504752c
Merge pull request #132 from DevTable/master
...
A socket that is wrapped in a file-like object must be set to blocking.
2014-01-02 13:50:52 -08:00
Jake Moshenko
294b42c6cd
A socket that is wrapped in a file-like object must be set to blocking.
2013-12-31 14:27:05 -05:00
Joffrey F
6f2ca81e31
Merge pull request #131 from antigluk/master
...
"six" dependency fixed to greater-or-equal
2013-12-30 08:32:06 -08:00
Roman Rader
9787c004e5
"six" dependency fixed to greater-or-equal
2013-12-30 17:49:43 +02:00
Maxime Petazzoni
ef009e114a
Style fixes for flake8
...
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-24 10:07:25 -08:00
Maxime Petazzoni
016a4d961c
Merge pull request #128 from slon/master
...
Fix infinite loop in Client.logs(stream=True) caused by connection close...
2013-12-24 10:04:32 -08:00
Fedor Korotkiy
09f95768f3
Fix infinite loop in Client.logs(stream=True) caused by connection close.
2013-12-24 12:01:16 +00:00
Maxime Petazzoni
20a2c23bc2
Merge pull request #127 from daniellawrence/patch-1
...
Updated using volumes (binds)
2013-12-22 18:18:50 -08:00
Daniel
761a97546f
Updated using volumes (binds)
...
bindings of volumes is called 'binds' not 'bindings'
https://github.com/dotcloud/docker-py/blob/master/docker/client.py#L640
2013-12-23 10:28:43 +11:00
Maxime Petazzoni
fd38b0e7e7
Merge pull request #126 from eltimn/patch-1
...
Updated function signatures in README
2013-12-22 11:10:16 -08:00
Tim Nelson
0eaafe2a9f
Updated function signatures in README
2013-12-22 03:20:16 -06:00
Joffrey F
67e50b4f9f
Merge pull request #118 from mpetazzoni/master
...
README.md formatting changes
2013-12-17 06:37:18 -08:00
Joffrey F
792fff6b47
Merge pull request #122 from mpetazzoni/base-url-sanitize
...
Remove trailing slashes in base_url
2013-12-17 05:55:18 -08:00
Joffrey F
98c5a85ac4
Merge pull request #123 from mpetazzoni/fix-log-stream-recvall
...
Fix stream receive by correctly reading all required bytes from the socket
2013-12-17 05:53:41 -08:00
Maxime Petazzoni
1fe3c041c4
Fix stream receive by correctly reading all required bytes from the socket
...
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-16 15:54:19 -08:00
Maxime Petazzoni
9b4582989b
Remove trailing slashes in base_url. Fixes #108
...
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
2013-12-16 15:30:44 -08:00
Ulises Reyes
d8e0f5a66f
Improves code style
2013-12-15 20:42:58 -05:00
Ulises Reyes
844e41088e
Refactored test. It now makes 2 calls to port
2013-12-15 02:11:02 -05:00
Ulises Reyes
daa3a1e2ef
Shortened lines
2013-12-14 22:28:45 -05:00