Commit Graph

2503 Commits

Author SHA1 Message Date
Joffrey F 3076a9ac40 2.3.0-dev
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-04-05 17:07:43 -07:00
Joffrey F 79edcc28f7 Add support for volume_driver in HostConfig
Some cleanup in ContainerConfig + warning if volume_driver is provided (API>1.20)

Signed-off-by: Joffrey F <joffrey@docker.com>
2017-04-05 17:05:08 -07:00
Joffrey F d12b5bb5e6 Merge pull request #1544 from shin-/1522-default_api_version_docs
Update mentions of the default API version in docs
2017-04-04 11:42:33 -07:00
Joffrey F eea1271cd0 Update mentions of the default API version in docs
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-04-03 16:45:09 -07:00
Joffrey F 62a49196a0 Merge pull request #1540 from docker/appveyor
Add appveyor to CI suite to run unit tests on Windows
2017-03-29 15:55:13 -07:00
Joffrey F 73d8097b3d Fix test issues
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-29 15:39:48 -07:00
Joffrey F 856971ed51 Merge pull request #1537 from shin-/add-integration-test-target
Add 17.04 (CE) RC1 to list of engine versions to be tested
2017-03-29 15:30:51 -07:00
Joffrey F 7fa30a713e Add appveyor.yml config
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-28 16:29:41 -07:00
Joffrey F 09813334c1 Add 17.04 (CE) RC1 to list of engine versions to be tested
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-28 16:22:35 -07:00
Joffrey F 277a6e13c2 Add reload() in docs for Container and Secret classes
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-28 16:00:29 -07:00
Joffrey F c0c25c07ca Merge pull request #1528 from shin-/events_no_timeout
Set infinite timeout for the `events` method
2017-03-28 12:06:37 -07:00
Joffrey F c5d35026ce Set infinite timeout for the `events` method
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-27 15:57:36 -07:00
Joffrey F cb68acbaae Merge pull request #1524 from alex-dr/fix-apierror-status
Fix APIError status_code property for client/server errors
2017-03-22 15:29:23 -07:00
alex-dr e0e7404380 Fix APIError status_code property for client/server errors
requests.Response objects evaluate as falsy when the status_code
attribute is in the 400-500 range. Therefore we are assured that
prior to this change, APIError would show `is_server_error() == False`
when generated with a 500-level response and `is_client_error() == False`
when generated with a 400-level response. This is not desirable.

Added some seemingly dry (not DRY) unit tests to ensure nothing silly
slips back in here.

Signed-off-by: alex-dr <alex@datarobot.com>
2017-03-22 00:49:07 -04:00
Joffrey F 3d8b20a906 Merge pull request #1446 from shin-/service-logs
Add service_logs command to APIClient and logs command to models.Service
2017-03-21 13:57:25 -07:00
Joffrey F 04c662bd23 Bump 2.2.0, update changelog
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-21 12:33:45 -07:00
Joffrey F b7fbbb56c7 Remove unsupported --experimental flag from Jenkinsfile
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-18 15:20:20 -07:00
Joffrey F aeb5479fd5 Use experimental engine for testing in Jenkins/Makefile
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-17 18:30:33 -07:00
Scott Miller 279b058752
Add License to PyPi metadata
Signed-off-by: Scott Miller <scott@millergeek.xyz>
2017-03-17 13:39:55 -04:00
Joffrey F daac15c1fa Add service_logs integration test
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-13 17:29:04 -07:00
Joffrey F be463bb27e Add service_logs command to APIClient and logs command to models.Service
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-13 16:55:30 -07:00
Joffrey F 24f75ea212 Merge pull request #1500 from shin-/fix_split_port_empty_string
Raise an error when passing an empty string to split_port
2017-03-13 11:59:52 -07:00
Joffrey F 4011fa7d5c Merge pull request #1505 from AntaresS/documentation-fix
documentation change
2017-03-09 16:17:43 -08:00
Joffrey F 54b3c364cb Raise an error when passing an empty string to split_port
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-09 16:12:48 -08:00
Joffrey F c2d114c067 Move LinksTest to appropriate file
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-09 16:12:22 -08:00
Joffrey F 12f1a6957e Merge pull request #1501 from max8899/fix/split_port
fix: Missing exception handling in split_port when no container port
2017-03-09 16:11:53 -08:00
Anda Xu eb91d709cb documentation change
Signed-off-by: Anda Xu <anda.xu@docker.com>
2017-03-09 13:53:43 -08:00
Lei Gong eba20084f6 fix: Missing exception handling in split_port when no container port
"localhost:host_port:" case will raise TypeError exception directly

Catch the "TypeError" and give proper error message

* docker/utils/ports.py

Signed-off-by: Lei Gong <xue177125184@gmail.com>
2017-03-09 16:28:34 +08:00
Joffrey F fa52824363 Merge pull request #1481 from shin-/system_df
Add df method
2017-03-06 11:08:41 -08:00
Joffrey F 11873993eb Merge pull request #1480 from shin-/bump-default-api-version
Bump default API version to 1.26
2017-03-06 11:08:16 -08:00
Joffrey F 830b9edce8 Merge branch 'tmad-container-init' 2017-03-01 14:02:50 -08:00
Joffrey F c0c3cb4497 Docstring fixes for init and init_path
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-01 14:02:35 -08:00
Tomasz Madycki 8c6534d7be Add init_path parameter to container HostConfig
Signed-off-by: Tomasz Madycki <tomasz.madycki@gmail.com>
2017-03-01 14:02:35 -08:00
Tomasz Madycki 13b5f785a7 Add init parameter to container HostConfig
Signed-off-by: Tomasz Madycki <tomasz.madycki@gmail.com>
2017-03-01 14:02:35 -08:00
Joffrey F d59b6b99cc Merge pull request #1479 from shin-/plugin-upgrade
Add upgrade_plugin method
2017-03-01 13:52:46 -08:00
Joffrey F 4273d3f63d Bump default API version to 1.26
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-01 13:52:07 -08:00
Joffrey F cfb14fa78f Add df method
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-03-01 13:51:39 -08:00
Joffrey F 4a08d04aef Merge pull request #1490 from ripcurld0/change_rm_error_msg
Update assert in test_create_with_restart_policy
2017-03-01 11:54:13 -08:00
Boaz Shuster 5dced6579a Update assert in test_create_with_restart_policy
In https://github.com/docker/docker/pull/30870 a new
error message is displayed if the container is restarting.

To make "test_create_with_restart_policy" pass against the
above change, the test checks that the error message contains
"You cannot remove " instead of
"You cannot remove a running container"

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
2017-03-01 15:36:32 +02:00
Joffrey F c35a6283a0 Merge pull request #1484 from BenDoan/master
removed unused/typoed param from models.containers.list docstring
2017-02-27 13:01:15 -08:00
Ben Doan 820af34940
removed unused/typoed param from models.containers.list docstring
Signed-off-by: Ben Doan <ben@bendoan.me>
2017-02-26 18:41:13 -06:00
Joffrey F 5268a31116 Add Plugin.upgrade to documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-23 18:15:40 -08:00
Joffrey F 48ac772994 Add upgrade_plugin method
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-23 17:27:04 -08:00
Joffrey F f387ae46d7 Merge pull request #1467 from crierr/master
Allow port range like 8000-8010:80
2017-02-22 15:27:42 -08:00
Joffrey F f9f77c4c2f Merge pull request #1473 from Anvil/event-http-headers
Allow events daemon command to read config.json
2017-02-21 12:11:58 -08:00
Joffrey F ae8c716376 Merge pull request #1466 from nkrabshuis/master
Add ability to set 'Hostname' on a Service.
2017-02-21 12:11:39 -08:00
Damien Nadé f36ef399ad Fixed events command related unit tests by passing a timeout value
Signed-off-by: Damien Nadé <github@livna.org>
2017-02-21 18:21:10 +01:00
Damien Nadé b587139d3c Allow events daemon command to read config.json
Signed-off-by: Damien Nadé <github@livna.org>
2017-02-21 17:53:02 +01:00
SeungJin Oh 60e7fd93a8 passing flake8 test
Signed-off-by: SeungJin Oh <crierr@naver.com>
2017-02-20 09:35:07 +09:00
SeungJin Oh 8e47f29720 check NoneType before using
Signed-off-by: SeungJin Oh <crierr@naver.com>
2017-02-20 09:32:36 +09:00