Joffrey F
06f5a47d91
Properly handle relative Dockerfile paths and Dockerfile on different drives
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-30 11:23:54 -07:00
Joffrey F
bedabbfa35
Add methods for /distribution/<name>/json endpoint
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-29 16:25:14 -07:00
Joffrey F
77c3e57dcf
Support building with Dockerfile outside of context
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-29 16:25:14 -07:00
Joffrey F
27322fede7
Add isolation param to build
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-29 16:25:14 -07:00
Joffrey F
e9f31e1e27
Remove redundant single-socket select call
...
Clean up + use pytest-timeout
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-29 16:25:14 -07:00
Viktor Adam
dd743db4b3
Allow cancelling the streams from other threads
...
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2018-03-29 16:25:14 -07:00
Joffrey F
d310d95fbc
Add test for container list with sparse=True
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-29 16:25:14 -07:00
Joffrey F
13609359ac
Improve dockerignore comment test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-05 11:49:43 -08:00
Wanzhi Du
74586cdd4c
Fix flake8 case
...
Signed-off-by: Wanzhi Du <wanzhi09@gmail.com>
2018-03-05 19:26:56 +08:00
Wanzhi Du
7a28ff3510
Ignore comment line from the .dockerignore file
...
This fixed the bug that test comment line in .dockerignore file as ignore rule
bug.
Add test for "# comment" patterns in .dockerignore.
Signed-off-by: Wanzhi Du <wanzhi09@gmail.com>
2018-03-05 18:10:09 +08:00
Yong Tang
ab1f90a379
Cleanup containers during the tests
...
This fix tries to clean up the containers during the tests
so that no pre-existing volumes left in docker integration tests.
This fix adds `-v` when removing containers, and makes sure
containers launched in non-daemon mode are removed.
This fix is realted to moby PR 36292
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-02-23 15:22:42 +00:00
Joffrey F
ad5f49b690
Merge pull request #1918 from rycus86/service-restart-method
...
Shorthand method for service.restart()
2018-02-21 12:05:10 -08:00
Viktor Adam
e54e8f4199
Shorthand method for service.force_update()
...
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2018-02-21 19:55:17 +00:00
Joffrey F
8fd9d3c99e
GenericResources was introduced in 1.32
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 17:11:27 -08:00
Joffrey F
9b6b306e17
Code cleanup and version guards
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 16:25:17 -08:00
William Myers
820de848fa
Add support for generic resources to docker.types.Resources
...
- Add support for dict and list generic_resources parameter
- Add generic_resources integration test
Signed-off-by: William Myers <mwilliammyers@gmail.com>
2018-02-20 16:25:17 -08:00
Joffrey F
cc455d7fd5
Fix DockerClient pull bug when pulling image by digest
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 14:51:49 -08:00
Yong Tang
cbbc37ac7b
Clean up created volume from test_run_with_named_volume
...
This fix adds the volume id to the list so that it could be
cleaned up on test teardown.
The issue was originally from https://github.com/moby/moby/pull/36292
where an additional `somevolume` pre-exists in tests.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-02-14 13:01:16 +00:00
Joffrey F
48e45afe88
Add support for device_cgroup_rules parameter in host config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-13 17:05:16 -08:00
Joffrey F
7fabcdaa4c
Update wait to always return a dict
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 16:52:26 -08:00
Joffrey F
df8422d079
Refuse API version < 1.21 ; Remove associated code paths
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 14:42:01 -08:00
Joffrey F
5347c168d0
Add support for publish mode for endpointspec ports
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-31 12:42:11 -08:00
Joffrey F
ccbde11c8d
Improve separation between auth_configs and general_configs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 18:42:38 -08:00
Joffrey F
e304f91b46
Update detach tests to work with AF_INET as well
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 17:16:23 -08:00
Fumiaki MATSUSHIMA
dd858648a0
Use config.json for detachKeys
...
Signed-off-by: Fumiaki Matsushima <mtsmfm@gmail.com>
2018-01-30 17:16:23 -08:00
Joffrey F
17aa31456d
Properly support pulling all tags in DockerClient.images.pull
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 16:47:04 -08:00
Joffrey F
3422211309
Use pytest asserts
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-30 14:26:24 -08:00
Joffrey F
5728eebf79
Merge pull request #1874 from docker/1774-export-methods
...
Update save / export methods to return data generators
2018-01-29 16:19:45 -08:00
Joffrey F
388f291b13
Update save / export methods to return data generators
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 16:23:55 -08:00
Joffrey F
631cc3c121
ImageCollection.build now also returns build logs along with the built image reference
...
BuildError.build_logs has a copy of the logs generator
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 15:59:46 -08:00
Joffrey F
deb8222d69
Merge pull request #1873 from docker/hongbin-image-load
...
Return Image objects in ImageCollection.load
2018-01-26 14:45:09 -08:00
Joffrey F
8b5a52ae0c
Error handling in ImageCollection.load
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 14:34:20 -08:00
Joffrey F
6e6eaece81
Return tuple instead of dict in exec_run
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 14:21:23 -08:00
Joffrey F
b0cc4b5520
Merge branch 'add_exit_code_to_exec_run' of https://github.com/hnq90/docker-py into hnq90-add_exit_code_to_exec_run
2018-01-26 14:13:15 -08:00
Joffrey F
abd60aedc7
Bump default API version to 1.35
...
Add ContainerSpec.isolation support
Add until support in logs
Add condition support in wait
Add workdir support in exec_create
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-26 13:56:01 -08:00
Joffrey F
a15a1d2fdd
Merge pull request #1856 from docker/1855-platform-option
...
Add support for experimental platform flag in build and pull
2018-01-24 18:12:50 -08:00
Joffrey F
4590e2a816
Merge pull request #1846 from feliperuhland/issue-1734-scale-method
...
Added scale method to the Service model.
2018-01-24 18:08:35 -08:00
Joffrey F
ccd79323da
Shift test matrix forward
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-24 11:39:43 -08:00
Joffrey F
f95b958429
Add support for experimental platform flag in build and pull
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-23 16:59:09 -08:00
Viktor Adam
e75a03fd6d
Fix regression on API < 1.25
...
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2018-01-12 22:18:53 +00:00
Joffrey F
bf06a361e2
Ignore dockerignore lines that contain only whitespace
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-01-03 12:16:21 -08:00
Felipe Ruhland
663c6089e9
Fix test to make sure the initial mode is replicated
...
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2018-01-03 00:21:56 -02:00
Felipe Ruhland
0e0a852680
Ensure that global containers are not scaled
...
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2017-12-26 18:30:28 -02:00
Felipe Ruhland
edb9e3c2ae
Added scale method to the Service model.
...
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
2017-12-21 23:13:18 -02:00
Joffrey F
2250fa2ebd
Don't attempt to retrieve container's stderr if `auto_remove` was set
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-19 13:50:32 -08:00
Joffrey F
6b8dfe4249
Retrieve container logs before container exits / is removed
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-12-14 16:53:44 -08:00
Joffrey F
8cfd4cb39f
Merge pull request #1807 from rycus86/update_service_from_prev_spec
...
Update service from prev spec
2017-12-14 12:44:36 -08:00
Joffrey F
644a82542b
Merge pull request #1834 from mhank/1823-support-update-order
...
Add support for order property when updating a service
2017-12-14 12:40:20 -08:00
Viktor Adam
a66c89247a
Renaming new argument
...
Signed-off-by: Viktor Adam <rycus86@gmail.com>
2017-12-14 09:55:36 +00:00
Joffrey F
20b5b58bb0
Merge pull request #1835 from docker/1758-url-quote-path
...
Fix URL-quoting for resource names containing spaces
2017-12-13 19:09:13 -08:00