Commit Graph

1372 Commits

Author SHA1 Message Date
Peter Ericson bec21cfce1 docs/api.md: singal -> signal 2015-07-19 01:51:58 -04:00
Matt Outten ebcfab0a4c Switch to send full AuthConfig object for build action
In order to support the docker API for version 1.7+, this command
changes the way the `X-Registry-Config` header is sent when attempting
to build an image.
2015-07-17 15:48:52 -04:00
Lars Kellogg-Stedman 2e546f7e26 return NotFound on 404 errors
This changes raises docker.errors.NotFound on 404 errors.  This gives
client code the ability to differentiate between "an image does not
exist" and "you are using the api incorrectly".

This inherits from docker.errors.APIError so it will not affect any
existing code.
2015-07-17 08:31:54 -04:00
Phil Estes f321eef031 Update all client instances in integration tests to use DOCKER_HOST
In testing Docker master with the latest docker-py release, a few new
tests exist which don't set the base_url, which is not the default unix
socket location when Docker's integration tests are running.

Also, there is no guarantee syslog can be reached from a test container
so I wrapped that test with the NOT_ON_HOST skip logic.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2015-07-14 13:00:35 -04:00
Joffrey F 946eb964ad Merge branch 'a-ba-fix-premature-eof' 2015-07-09 11:13:09 -07:00
Joffrey F 96a5b29a4a Merge branch 'fix-premature-eof' of https://github.com/a-ba/docker-py into a-ba-fix-premature-eof
Conflicts:
	docker/client.py
2015-07-09 11:12:01 -07:00
Joffrey F c846d7e1b5 Back to dev version 2015-07-09 11:09:48 -07:00
Joffrey F 07ca4f5725 Merge pull request #671 from docker/1.3.0-release
1.3.0 release
2015-07-09 10:52:07 -07:00
Joffrey F b60d57b67b websocket-client for all versions 2015-07-08 15:18:04 -07:00
Joffrey F aa20f40fcd Updated changelog 2015-07-08 15:08:43 -07:00
Joffrey F 7d85f68460 Bumped version to 1.3.0 2015-07-08 15:08:35 -07:00
Joffrey F 826c9e676a Removed execute() method 2015-07-08 15:08:13 -07:00
Joffrey F 69ef9e5668 Added missing `Client.load_image` docs
Clarified `Client.wait` docs
2015-07-08 13:38:41 -07:00
Joffrey F 28d0840cac Merge pull request #669 from dano/fix-tty-streams2
Fix handling output from tty-enabled containers.
2015-07-08 13:30:59 -07:00
Dan O'Reilly 70b921f8a3 Fix handling output from tty-enabled containers.
Treat output from TTY-enabled containers as raw streams, rather than
as multiplexed streams. The docker API docs specify that tty-enabled
containers don't multiplex. Also update tests to pass with these
changes, and changed the code used to read raw streams to not
read line-by-line, and to not skip empty lines.

Addresses issue #630

Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-07-06 18:20:41 -04:00
Maxime Petazzoni 7b18543999 Merge pull request #666 from Slix/patch-1
Fix missing apostrophes in docs
2015-07-02 09:38:18 -07:00
Peter Kowalczyk 3bc9f52d9d Fix missing apostrophes in docs 2015-07-02 10:42:08 -05:00
Stephen Newey 7bbec93f64 Add test for root user as default exec_create behaviour 2015-07-02 13:24:51 +01:00
Maxime Petazzoni f3453aa23f Merge pull request #652 from docker/clientbase_extraction
ClientBase extraction
2015-07-01 17:55:59 -07:00
Joffrey F 4f89ca73da ClientBase class to extract utility methods and constructor and sanitize Client class 2015-07-01 00:27:49 +02:00
Joffrey F d66369c29c Fix adapter bug + regression test 2015-07-01 00:26:58 +02:00
Joffrey F 2d7f1cfa1e Merge pull request #651 from docker/fix_647
Fix adapter bug + regression test
2015-06-30 15:19:14 -07:00
Joffrey F ac90a874be Merge pull request #644 from docker/memory-memswap-hostconfig
memory / memswap in hostconfig
2015-06-30 15:06:32 -07:00
Joffrey F 9e87884ba8 Fix Unix socket adapter bug with double slash in path + regression test 2015-06-30 23:59:03 +02:00
Maxime Petazzoni c8c957c983 Merge pull request #661 from docker/fix_640
Added git@ as a valid prefix for remote build paths
2015-06-30 14:40:11 -07:00
Stephen Newey a12818a8a8 Add user argument to exec_create documentation. 2015-06-30 13:41:22 +01:00
Stephen Newey 6a5a256509 Add support for user on exec_create. 2015-06-30 13:23:42 +01:00
Joffrey F b959487117 Added git@ as a valid prefix for remote build paths 2015-06-30 03:00:10 +02:00
Joffrey F d300f5f323 Merge pull request #654 from Melraidin/master
Prefer new Docker config location and format.
2015-06-29 17:54:02 -07:00
Joffrey F 5375433058 Fix small decorator issue 2015-06-30 02:50:34 +02:00
Joffrey F 37fb963342 Merge branch 'posita-id-resolution-in-check-resource' 2015-06-30 01:49:33 +02:00
Joffrey F c2d98c204b Cleanup 2015-06-30 01:49:20 +02:00
Joffrey F 237ce20013 Merge branch 'id-resolution-in-check-resource' of https://github.com/posita/docker-py into posita-id-resolution-in-check-resource 2015-06-30 01:46:22 +02:00
Anthony Baire e132909244 fix premature EOF detection in streams
The docker engine may send empty chunks of data in the stream
(especially since https://github.com/docker/docker/pull/13033)
They should not be taken for EOF

Signed-off-by: Anthony Baire <Anthony.Baire@irisa.fr>
2015-06-29 20:05:01 +02:00
Kevin Martin 6609586cc6 Prefer new Docker config location and format.
This tries to load Docker authentication info from
~/.docker/config.json before falling back to its legacy location and
format at ~/.dockercfg.

Resolves https://github.com/docker/docker-py/issues/648
2015-06-28 23:32:03 -04:00
Joffrey F 64dcd5a191 Merge pull request #653 from docker/fix_649
Fix stop timeout bug
2015-06-24 15:08:50 -07:00
Joffrey F 30fac5b879 Fix stop timeout bug 2015-06-24 22:58:56 +02:00
Aanand Prasad 772262fed0 Merge pull request #645 from docker/update-websocket-client-dep
Update websocket client dependency
2015-06-19 14:59:45 -07:00
Joffrey F ed94c0d525 Simplified tox config 2015-06-19 23:16:54 +02:00
Joffrey F 3170277347 Updated websocket-client dependency to latest version (now supports python 3) 2015-06-19 23:09:51 +02:00
Joffrey F f40e0342b2 Merge branch 'cesanta-master' 2015-06-19 22:42:58 +02:00
Joffrey F 8f43c03586 Support 401 status for v2 registry endpoint 2015-06-19 22:42:43 +02:00
Joffrey F d70aa1e45c Merge branch 'master' of https://github.com/cesanta/docker-py into cesanta-master 2015-06-19 22:36:23 +02:00
Joffrey F 7118b1fe5e Added Aanand (@aanand) as a maintainer 2015-06-19 02:59:35 +02:00
Joffrey F a12ba1a96f Updated tests for mem_limit changes 2015-06-19 02:13:12 +02:00
Joffrey F 427e3a6023 Moved mem_limit and memswap_limit to host_config for API version >= 1.19 2015-06-19 02:12:32 +02:00
Joffrey F e5485fb24f Merge branch 'glogiotatidis-pullfix' 2015-06-19 01:27:04 +02:00
Joffrey F cf06837002 Merge branch 'pullfix' of https://github.com/glogiotatidis/docker-py into glogiotatidis-pullfix
Conflicts:
	docker/client.py
2015-06-19 01:26:49 +02:00
Joffrey F ed07b053e9 Merge pull request #614 from ibuildthecloud/extra-host-list
Allow extra_hosts to be a list too
2015-06-18 12:30:21 -07:00
Joffrey F 54e48662a5 Merge pull request #609 from mattmoor/master
Update docker-py to use a more portable sense of HOME.
2015-06-18 12:29:08 -07:00