Commit Graph

1288 Commits

Author SHA1 Message Date
Joffrey F 42b712d100 Merge pull request #680 from aanand/fix-timestamp-conversion
Enforce UTC datetimes in arguments to `events()`
2015-07-21 10:45:29 -07:00
Aanand Prasad 75cc50f0ad Default to ~/.docker if DOCKER_CERT_PATH is empty
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-21 16:50:44 +01:00
Paul Bellamy 7de1605e9a Fix integration tests.
Forgot to update them in 33e1a58

Signed-off-by: Paul Bellamy <paul.a.bellamy@gmail.com>
2015-07-21 12:07:22 +01:00
Aanand Prasad 2c08ad21dd Merge pull request #674 from estesp/use-docker-host-in-tests
Update all client instances in integration tests to use DOCKER_HOST
2015-07-21 11:09:22 +01:00
Aanand Prasad 657420a4d3 Enforce UTC datetimes in arguments to `events()`
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-21 10:49:27 +01:00
Aanand Prasad 4f2ad70f5f Merge pull request #683 from docker/exec_create_check_dict
Added check_resource decorator to exec_create
2015-07-21 10:48:16 +01:00
Joffrey F b712e97d4a Added check_resource decorator to exec_create 2015-07-20 14:17:06 -07:00
Joffrey F 4be228653d Make build auth work with API versions < 1.19 too 2015-07-20 14:06:33 -07:00
Joffrey F 7430eb8e65 Merge branch 'fix-build-auth' of https://github.com/moutten/docker-py into moutten-fix-build-auth 2015-07-20 13:56:29 -07:00
Joffrey F 933ee526ba Merge branch 'master' of github.com:docker/docker-py 2015-07-20 13:52:15 -07:00
Joffrey F 90f81ed328 Merge branch 'aanand-remove-registry-ping' 2015-07-20 13:51:08 -07:00
Joffrey F 915be6ad67 Use constant for deprecation message in auth.py 2015-07-20 13:50:49 -07:00
Aanand Prasad 33e1a58b60 Stop pinging registries from the client
The daemon already pings the registry, so doing it on our end is
redundant and error-prone.

The `insecure_registry` argument to `push()`, `pull()` and `login()` has
been deprecated - in the latter case, it wasn't being used anyway.

The `insecure` argument to `docker.auth.resolve_repository_name()` has
also been deprecated.

`docker.utils.ping_registry()` has been deprecated.

`docker.auth.expand_registry_url()` has been removed.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-20 19:50:18 +01:00
Joffrey F 1f5ba4b25d Merge pull request #678 from pdericson/docs
Minor fixes for docs/api.md
2015-07-20 11:28:39 -07:00
Aanand Prasad 4cfb15737d Merge pull request #676 from larsks/feature/notfound-on-404
return NotFound on 404 errors
2015-07-20 11:46:21 +01:00
Peter Ericson 874be5b333 docs/api.md: rework stats params 2015-07-19 02:02:45 -04:00
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