Joffrey F
5552deed86
Add support for mounts in HostConfig
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-24 18:59:01 -07:00
Joffrey F
ec9356d3a0
Remove superfluous version validation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-02 12:50:04 -07:00
Steve Clark
ca435af52e
Adding swarm id_attribute to match docker output
...
Swarm id is returned in a attribute with the key ID. The swarm model was using the default behaviour and looking for Id.
Signed-off-by: Steve Clark <steve@cobe.io>
2017-09-21 22:40:10 -07:00
Joffrey F
3c9c8b181c
Use unambiguous advertise-addr when initializing a swarm
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-31 13:17:12 -07:00
Joffrey F
0c2b4e4d3a
Always send attach request as streaming
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-22 17:00:11 -07:00
Joffrey F
89195146ad
Always send attach request as streaming
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-21 15:56:19 -07:00
Joffrey F
d9df2a8b75
Fix handling of non-multiplexed (TTY) streams over upgraded sockets
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Gabriel Féron
a6065df64d
Add support for the `squash` flag when building
...
Also added a test that compares the number of layers in the default mode, and with the new flag
Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F
b4802ea126
Handle untyped ContainerSpec dict in _check_api_features
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Joffrey F
7139e2d8f1
Return generator for output of load_image endpoint
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 13:38:40 -07:00
Cecile Tonglet
9e793806ff
Return the result of the API when using remove_image and load_image
...
Those calls return result that can be used by the developers.
Signed-off-by: Cecile Tonglet <cecile.tonglet@gmail.com>
2017-08-17 13:38:40 -07:00
Artem Bolshakov
62fda980e4
client.containers.run returns None if none of json-file or journald logging drivers used
...
Signed-off-by: Artem Bolshakov <either.free@gmail.com>
2017-08-17 13:38:40 -07:00
Joffrey F
13b9349216
Fix handling of non-multiplexed (TTY) streams over upgraded sockets
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-17 12:02:59 -07:00
Gabriel Féron
76eb0298c6
Add support for the `squash` flag when building
...
Also added a test that compares the number of layers in the default mode, and with the new flag
Signed-off-by: Gabriel Féron <feron.gabriel@gmail.com>
2017-08-15 18:09:39 -07:00
Joffrey F
18acd569a1
Handle untyped ContainerSpec dict in _check_api_features
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 17:22:25 -07:00
Joffrey F
5e4a69bbda
Return generator for output of load_image endpoint
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-08-15 14:58:29 -07:00
Cecile Tonglet
56dc7db069
Return the result of the API when using remove_image and load_image
...
Those calls return result that can be used by the developers.
Signed-off-by: Cecile Tonglet <cecile.tonglet@gmail.com>
2017-08-15 14:43:32 -07:00
Artem Bolshakov
b8fd821336
client.containers.run returns None if none of json-file or journald logging drivers used
...
Signed-off-by: Artem Bolshakov <either.free@gmail.com>
2017-08-07 12:02:02 -07:00
Joffrey F
06d2553b9c
Add support for ContainerSpec.TTY
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-06-21 16:29:25 -07:00
Joffrey F
a3b1059839
Merge pull request #1658 from docker/1397-build-network
...
Add network_mode support to Client.build
2017-06-20 16:51:00 -07:00
Joffrey F
9b9fb0aa01
Make sure data is written in prune test so space can be reclaimed
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-06-20 16:07:15 -07:00
Joffrey F
39bb78ac69
Add network_mode support to Client.build
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-06-19 15:50:28 -07:00
Joffrey F
bb82bcf784
Merge pull request #1626 from datwiz/images-build-error-1625
...
fix #1625 where ImageCollection.build() could return with incorrect image id
2017-06-19 15:20:17 -07:00
Joffrey F
1ea6618b09
Add support for start_period in Healthcheck spec
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-06-16 17:02:59 -07:00
Joffrey F
8645d1d41b
Merge pull request #1617 from docker/create-ingress-network
...
Add support for ingress in create_network
2017-06-16 12:06:56 -07:00
Joffrey F
2086c20ce1
Merge pull request #1631 from madhuri-rai07/master
...
Add support for ``runtime`` config
2017-06-16 12:05:15 -07:00
Olivier Sallou
d638829f73
Closes #1588 , image.tag does not return anything
...
This patch returns the check made against api when tagging an image as stated in documentation
Signed-off-by: Olivier Sallou <olivier.sallou@irisa.fr>
2017-06-16 17:49:43 +02:00
Bryan Boreham
234296171f
Only pull the 'latest' tag when testing images
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2017-06-14 14:05:26 +00:00
Madhuri Kumari
612c0f3d0d
Fix test cases for ``runtime`` config
...
Signed-off-by: Madhuri Kumari <madhuri.kumari@intel.com>
2017-06-07 10:47:27 +05:30
Madhuri Kumari
6ae24b9e60
Add support for ``runtime`` in container create and run API
2017-06-01 15:09:46 +00:00
Chris Ottinger
1223fc144f
new integration task linting for #1625
...
Signed-off-by: Chris Ottinger <chris.ottinger@team.telstra.com>
2017-05-27 11:24:58 +10:00
Chris Ottinger
6ef9d426eb
added integration test for #1625 for ImageCollection.build() that verfies that the build method uses the last success message for extracting the image id
...
Signed-off-by: Chris Ottinger <chris.ottinger@team.telstra.com>
2017-05-27 10:29:36 +10:00
allencloud
41aae65ab2
update swarm remove test status code from 500 to >= 400
...
Signed-off-by: allencloud <allen.sun@daocloud.io>
2017-05-18 10:06:58 +08:00
Joffrey F
fb16d14544
Merge pull request #1615 from docker/service-placement
...
Add support for placement preferences and platforms in TaskTemplate
2017-05-17 15:25:40 -07:00
Joffrey F
ff718f5dac
Add support for ingress in create_network
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-17 15:25:10 -07:00
Joffrey F
9cc021dfa6
Add support for placement preferences and platforms in TaskTemplate
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-17 13:48:30 -07:00
Yong Wen Chua
e4093ab258
Add `target` argument to image building
...
This is related to the multi-stage image building
that was introduced in 17.05 (API 1.29).
This allows a user to specify the stage of a multi-stage
Dockerfile to build for, rather than the final stage.
Signed-off-by: Yong Wen Chua <me@yongwen.xyz>
2017-05-16 16:13:54 +08:00
Joffrey F
2aa63dd9a6
Merge pull request #1605 from allencloud/update-test-status-code-from-500-to-400
...
update docker-py test status code from 500 to 400
2017-05-15 12:18:51 -07:00
allencloud
717459db0e
update docker-py test status code from 500 to 400
...
Signed-off-by: allencloud <allen.sun@daocloud.io>
2017-05-13 09:31:42 +08:00
Joffrey F
95297dc2e7
Replace erroneous networks argument in containers.run with singular
...
network equivalent.
Small docfixes
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-12 14:28:27 -07:00
Joffrey F
6ed0c01018
Adjust tests and add newest engine version to Jenkinsfile
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-09 17:18:46 -07:00
Joffrey F
bf60e2a330
init_path removed in Engine 17.05
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-09 16:16:10 -07:00
Joffrey F
c6ddea469f
Include tag in images.get after pulling if provided separately
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-09 12:24:40 -07:00
Joffrey F
e19aad860c
Merge branch '1577-multi-success-message' of https://github.com/aaronthebaron/docker-py into aaronthebaron-1577-multi-success-message
2017-05-05 15:01:16 -07:00
Joffrey F
c6030027f5
Modernize exec_api.py
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-05-02 17:09:09 -07:00
Aaron Cowdin
7dffc46234
Add integration tests
...
Signed-off-by: Aaron Cowdin <aaron.cowdin@gmail.com>
2017-05-02 17:01:34 -07:00
Tomas Tomecek
4633dac580
exec: add support for `Env`
...
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2017-04-29 08:56:51 +02: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
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
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
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
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
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
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
48ac772994
Add upgrade_plugin method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-23 17:27:04 -08:00
Joffrey F
e0b6cdfcf6
Merge pull request #1460 from shin-/fix-cache-from
...
Rename cachefrom -> cache_from
2017-02-16 13:35:58 -08:00
Joffrey F
0a97df1abc
Rename cachefrom -> cache_from
...
Fix cache_from integration test
Fix image ID detection in ImageCollection.build
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-15 19:13:24 -08:00
Joffrey F
3a9c83509c
Add xfail mark to storageopt test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-15 19:02:31 -08:00
Joffrey F
4a50784ad4
Merge pull request #1459 from shin-/1300-storageopts
...
Add support for storage_opt in host_config
2017-02-15 18:12:31 -08:00
Joffrey F
ece3b19782
Add support for storage_opt in host_config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-15 17:43:24 -08:00
Joffrey F
e8a86e40cc
Add tests for secret API implementation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-13 17:06:25 -08:00
Joffrey F
35f37a0936
Merge pull request #1432 from shin-/plugins
...
Plugins API
2017-02-13 13:20:53 -08:00
Joffrey F
e1ad3186ef
Add create_plugin implementation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-09 17:58:05 -08:00
Ben Firshman
956fe1cac1
Fix volume path passed by run to create_container
...
Seems like this is pretty much ignored by Docker, so it wasn't
causing any visible issues, except when a volume name was used
instead of a path.
Also, added integration tests.
Ref #1380
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2017-02-07 19:22:35 +01:00
Joffrey F
42b9358458
Merge pull request #1425 from shin-/prunes
...
Prunes
2017-02-03 19:49:54 -08:00
Joffrey F
9296971e4c
APIClient implementation of plugin methods
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-03 19:45:59 -08:00
Joffrey F
b3ea1fb942
Merge pull request #1429 from shin-/fix_remove_network_test
...
Improve robustness of remove_network integration test
2017-01-30 19:13:22 -08:00
Joffrey F
83b45b7d54
Add prune_networks method
...
Ensure all integration tests use the same version of the busybox image
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 18:54:18 -08:00
Joffrey F
89d3803344
Add prune_volumes method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 18:53:46 -08:00
Joffrey F
7f0c2e7531
Add prune_images method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 18:53:46 -08:00
Joffrey F
f2a867f04b
Add prune_containers method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 18:53:46 -08:00
Joffrey F
bf41c7fa67
Improve robustness of remove_network integration test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 18:52:11 -08:00
Joffrey F
d22e2fec6f
Add support for force_update in TaskTemplate
...
Add min version checks in create_service and update_service
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-27 17:19:18 -08:00
Joffrey F
fc5cd1a914
Add support for max_failure_ratio and monitor in UpdateConfig
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-27 16:40:05 -08:00
Joffrey F
847f209865
Add stop_timeout to create_container
...
Fix requires_api_version test decorator
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-27 16:00:18 -08:00
Joffrey F
0186456f3c
Merge pull request #1413 from docker/force_remove_volume
...
Add 'force' parameter in remove_volume
2017-01-26 14:40:00 -08:00
Joffrey F
2d93674903
Merge pull request #1419 from docker/remove_obsolete_search_test
...
Remove integration test for APIClient.search method
2017-01-26 14:34:10 -08:00
Joffrey F
a24b114af3
Add 'force' parameter in remove_volume
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-26 14:24:52 -08:00
Joffrey F
64519a2b20
Merge pull request #1415 from docker/autoremove_support
...
Add support for auto_remove in HostConfig
2017-01-26 14:24:23 -08:00
Joffrey F
62c94f9634
Remove integration test for APIClient.search method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-26 14:07:41 -08:00
Thomas Schaaf
686d8e9536
Implement cachefrom
...
Signed-off-by: Thomas Schaaf <schaaf@komola.de>
2017-01-26 11:20:01 +00:00
Joffrey F
a1d550a14c
Allow configuring API version for integration test with env var
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-25 16:52:26 -08:00
Joffrey F
848b7aa6a4
Add support for auto_remove in HostConfig
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-25 16:45:59 -08:00
Joffrey F
3e5bb7b0e6
Fix Swarm model init to correctly pass arguments through to init_swarm
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-25 15:28:43 -08:00
Joffrey F
06e8081799
Convert mode argument to valid structure in create_service
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-19 16:23:32 -08:00
Joffrey F
48c5cd82fc
Prevent Swarm address conflicts
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-08 14:50:05 -08:00
Joffrey F
d024b1bd78
Merge pull request #1338 from docker/remove_node
...
Implement swarm node removal
2016-12-07 15:37:17 -08:00
Joffrey F
738cfdcdf9
Update code and tests for Engine 1.13 compatibility
...
Makefile now runs tests against Docker 1.13 RC
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-07 14:51:14 -08:00
Joffrey F
c239e40504
Implement swarm node removal
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-07 12:24:18 -08:00
Joffrey F
b71f34e948
Fix typo in create_network
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-06 11:26:53 -08:00
Ben Firshman
dd8ad21c88
Merge pull request #1272 from TomasTomecek/1271-fix-detach-in-exec-start
...
exec: fix running with detach=True
2016-12-05 11:00:10 +00:00
Joffrey F
88b733b0f4
Merge branch 'patch-1' of https://github.com/manics/docker-py into manics-patch-1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-02 14:50:40 -08:00
Joffrey F
993f298e85
Move config type creation from docker.utils functions to classes in
...
docker.types
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-01 16:06:41 -08:00
Tomas Tomecek
515db1f6fd
exec: fix running with detach=True
...
Fixes #1271
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2016-11-29 16:04:52 +01:00
Joffrey F
9643253c50
Merge pull request #1297 from docker/stepanstipl-allow_custom_pid_mode
...
Allow custom pid mode
2016-11-28 14:00:07 -08:00
Joffrey F
44e57fb95d
Re-enable pid_mode checks for API < 1.24
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-28 12:01:25 -08:00
Stepan Stipl
7ef48c3769
Allow custom PID mode for the container
...
Docker added support for sharing PID namespaces with other containers
since version 1.12 (see https://github.com/docker/docker/pull/22481 ).
Signed-off-by: Stepan Stipl <stepan@stipl.net>
2016-11-28 11:42:00 -08:00
Ben Firshman
b4c02393b2
Remove MAINTAINER from Dockerfiles
...
It was deprecated in https://github.com/docker/docker/pull/25466
(Sorry @shin- ;)
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-24 13:32:20 +00:00
Ben Firshman
1984f68730
Add new user-focused API
...
See #1086
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:05:43 +00:00
Ben Firshman
d98a879016
Add random_name test helper
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:03:04 +00:00
Ben Firshman
6334312e47
Split out base integration test for APIClient
...
So the cleanup stuff can be reused for model tests.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:03:04 +00:00
Ben Firshman
9daa320454
Rename Client to APIClient
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:03:03 +00:00
Ben Firshman
c7903f084e
Remove AutoVersionClient
...
Just do Client(version='auto').
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-11-22 17:03:03 +00:00
Joffrey F
f12b618ee9
Merge pull request #1236 from docker/host_config_isolation
...
Add support for isolation param in host config
2016-11-17 17:42:57 -08:00
Aanand Prasad
e4b6d0dca6
Convert dicts to Healthcheck objects, string commands to CMD-SHELL lists
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-11-16 16:04:17 +00:00
Aanand Prasad
6bb7844ab3
Rework healthcheck integration test
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-11-16 16:04:17 +00:00
Jamie Greeff
b4f2b5fa70
Add support for passing healthcheck to create_container
...
Signed-off-by: Jamie Greeff <jamie@greeff.me>
2016-11-16 16:04:17 +00:00
Simon Li
cb967ef682
Add test for creating service with env
...
Signed-off-by: Simon Li <orpheus+devel@gmail.com>
2016-11-11 16:29:43 +00:00
Ryan Belgrave
98e2e1fcd6
Add labels and shmsize arguments to the image build
...
Signed-off-by: Ryan Belgrave <Ryan.Belgrave@target.com>
2016-11-08 09:45:32 -06:00
Joffrey F
f745c8e7c5
Merge pull request #1230 from LabattFoodService/updateNode
...
enable setting of node labels #1225
2016-11-07 10:47:55 -08:00
Joffrey F
be2ae8df36
WIP
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-04 15:10:12 -07:00
Alessandro Boch
54586053b1
Changes for service tests to pass in docker master
...
- update config structure has new members
- service name update is no longer supported
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-11-01 16:56:37 -07:00
Joffrey F
9b35c74f0e
Fix dockerignore exclusion logic on Windows
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-14 16:02:28 -07:00
Joffrey F
cec3fe7c31
Update tests to avoid failures on Windows platforms
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-14 16:02:28 -07:00
Ben Firshman
69e992ec48
Move requires_api_version to helpers
...
Because it's a helper, not a base thing. In preparation for
moving/deleting the unit test base classes.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-10-03 11:58:08 +01:00
Ben Firshman
7339d77043
Move BaseTestCase to BaseIntegrationTest
...
Because two things called `BaseTestCase` is quite confusing.
I haven't bothered refactoring the other `BaseTestCase` because
that disappears anyway when we drop Python 2.6 support.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-10-03 11:58:08 +01:00
Joffrey F
49997d040b
Add support for isolation param in host config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-29 16:34:36 -07:00
Joffrey F
2b34e0b8e4
Merge pull request #1224 from mferon/addRestartPolicyUpdateSupport
...
Add support for restart policy update
2016-09-29 14:53:53 -07:00
Alessandro Boch
a864059b83
Adjust test_create_network_with_ipam_config
...
- to account for API change: IPAM class will now
also include a Data class, besides Config.
Signed-off-by: Alessandro Boch <aboch@docker.com>
2016-09-29 09:49:58 -07:00
Maxime Feron
a665c8c443
Add support for restart policy update
...
Signed-off-by: Maxime Feron <maxime.feron@corp.ovh.com>
2016-09-28 10:21:59 +02:00
Nathan Shirlberg
6ef14932d0
enable setting of node labels #1225
...
Added update_node function to enable setting labels on nodes. This
exposes the Update a Node function from the Docker API and should
enable promoting/demoting manager nodes inside a swarm.
Signed-off-by: Nathan Shirlberg <nshirlberg@labattfood.com>
2016-09-27 11:26:26 -05:00
Joffrey F
89afee94fd
Merge pull request #1213 from bfirsh/parse-json-errors
...
Parse JSON API errors
2016-09-14 11:09:55 -07:00
Ben Firshman
ca51ad29a5
Ignore not in swarm error when force leaving
...
Real errors were getting swallowed in these tests, producing
other confusing cascading errors. This makes it much easier to
make sure a node is not in a Swarm, while also handling other
errors correctly.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-09-14 16:00:03 +01:00
Ben Firshman
dcd01f0f48
Parse JSON API errors
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-09-14 14:54:40 +01:00
Joffrey F
75497e0752
Add test for import_image with changes param
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-06 15:38:44 -07:00
Joffrey F
6552076856
Add support for force disconnect
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-31 18:44:36 -07:00
Joffrey F
a665dfb375
Add support for labels and enable_ipv6 in create_network
...
Tests + docs
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-31 18:26:16 -07:00
Joffrey F
0e4314a872
Merge branch 'jp-cpushares' of https://github.com/joshpurvis/docker-py into joshpurvis-jp-cpushares
2016-08-23 15:12:30 -07:00
Joffrey F
775b581c04
Private images support in create_service / update_service
...
Refactor auth header computation
Add tasks methods and documentation.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-23 14:52:07 -07:00
Joffrey F
7d5a1eeb7a
Add services documentation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-22 17:45:10 -07:00
Joffrey F
97094e4ea3
New docker.types subpackage containing advanced config dictionary types
...
Tests and docs updated to match
docker.utils.types has been moved to docker.types
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-19 16:51:13 -07:00
Joffrey F
02e99e4967
Service API integration tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-17 18:42:52 -07:00
Brian Goff
0f47db7fcc
Remove references to "ExecutionDriver"
...
Docker no longer has an `ExecutionDriver` as of Docker 1.11.
The field in the `docker info` API will not be present in 1.13.
Found this while working on docker/docker#25721
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-08-17 12:20:13 -07:00
Josh Purvis
7d147c8ca1
Move cpu_shares and cpuset_cpu to HostConfig when API >= 1.18
...
Signed-off-by: Josh Purvis <joshua.purvis@gmail.com>
2016-08-15 16:33:58 -04:00
Joffrey F
a75553b3ca
Add `nodes` and `inspect_node` methods
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-11 17:47:02 -07:00
Joffrey F
0f70b6a38b
Add support for custom name in SwarmSpec
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 16:48:21 -07:00
Joffrey F
25db440c96
Update arguments for several Swarm API methods
...
Add Client.update_swarm method
Add test for Client.update_swarm
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 15:11:13 -07:00
Joffrey F
1f055796a8
Add new init_swarm test with custom spec
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-03 18:00:29 -07:00
Joffrey F
07563cfe3f
Update swarm methods to include newly added parameters
...
Rename swarm methods to be more explicit
Utility methods / types to create swarm spec objects
Integration tests
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-03 16:58:26 -07:00
Joffrey F
9d48b4f603
Test fixes and updated Makefile for 1.12 testing
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-03 16:48:41 -07:00
Joffrey F
cea7376086
Send LinkLocalIPs as part of IPAMConfig dictionary
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-25 15:04:04 -07:00
Aanand Prasad
267021e453
Rename read methods for clarity
...
read_socket() is now just read(), because its behaviour is consistent
with `os.read` et al.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-13 18:58:57 -04:00
Aanand Prasad
9fb2caecb9
Rename next_packet_size to next_frame_size
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-13 17:08:17 -04:00
Aanand Prasad
73f06e3335
Move socket-reading test helpers into docker.utils.socket
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-13 17:08:17 -04:00
Joffrey F
d96d848bb4
Add integration tests for different types of kill signals
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-28 12:03:44 -07:00
Joffrey F
1132368be1
Fix network aliases test with Engine 1.12
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-28 11:05:01 -07:00
Joffrey F
b6fa986293
Add ipv[46]_address params to create_endpoint_config.
...
Update networks documentation with exhaustive API docs
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-13 17:58:10 -07:00
Jonathan Giannuzzi
98b41fee3c
Add support for creating internal networks
...
Signed-off-by: Jonathan Giannuzzi <jonathan@giannuzzi.be>
2016-05-18 16:25:43 +02:00
Joffrey F
cf83119882
Test commit changes param
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-23 12:17:22 -07:00
Joffrey F
14cc5806c5
Merge branch 'gferon-master'
2016-03-23 12:02:31 -07:00
Joffrey F
7b17cfaa46
check_duplicate test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-23 12:01:56 -07:00
Joffrey F
ec05d5d2c0
gzip build test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-23 11:23:05 -07:00
wenchma
6fa76e01a4
Remove the network mode to support linkable cantainers check
...
Partially related to issue #21080
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
2016-03-21 10:25:08 +08:00
Joffrey F
41acd70fd4
Merge pull request #995 from docker/default-version-1.22
...
Update default API version to 1.22
2016-03-16 19:55:42 -07:00
Joffrey F
5ace6204b4
Update default API version to 1.22
...
Update engine version used for integration tests
IP address configuration tests needed tweaking
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-16 17:52:39 -07:00
Aanand Prasad
4ffa1be825
Add tmpfs integration test
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-16 17:28:10 +00:00
Joffrey F
d4c17859a3
Invalid log driver error raised during create_container step
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-14 15:05:47 -07:00
Matt Daue
d4a5bc4a86
Add ip4&ip6 ( #935 ) support, network/id/connect
...
Signed-off-by: Matt Daue <mattdaue@gmail.com>
- Implement check to validate API ver is >= 1.22 for new feature
- Includes patch @elchris82: Changed network in data dict to IPAMConfig as needed from the API. See https://github.com/docker/docker/issues/20732
- Update unit test for container attach to net
- Update integration tests
- Add integration test for IP setting
Signed-off-by: Matt Daue <mattdaue@gmail.com>
2016-03-02 20:38:37 -05:00
Joffrey F
81d8caaf36
Merge pull request #916 from docker/container_update_feature
...
Support for container limits update
2016-02-24 18:00:06 -08:00
Joffrey F
cdf6dc8c3c
Merge pull request #942 from seguins/934-separate-stream-follow-logs
...
Separate params stream and follow for logs.
2016-02-24 16:04:42 -08:00
Daniel Nephin
3bad04649d
Fix env vars with empty values.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2016-02-24 15:36:21 -08:00
Daniel Nephin
d9d84ce8d1
Format environment variables to match docker-cli.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2016-02-23 16:30:26 -08:00
Joffrey F
7440603d98
Improve parse_bytes util method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-23 16:18:45 -08:00
Joffrey F
c3ba50c98d
New `update_container` method
...
Allows user to update container limits in-flight.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-23 16:18:36 -08:00
Stéphane Seguin
71fafd3209
Separate params stream and follow for logs.
...
Closes #934
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2016-02-16 18:51:55 +01:00
Joffrey F
fea32eb983
Merge branch 'VolumeBind' of https://github.com/keloyang/docker-py into keloyang-VolumeBind
2016-02-08 11:36:09 -08:00
yangshukui
f4b3a1bddd
create tempfile in VolumeBindTest for non-auto-creating of docker
...
Signed-off-by: yangshukui <yangshukui@huawei.com>
2016-02-04 15:49:15 +08:00
Aanand Prasad
403d271cc2
Raise exceptions for API errors on network connect/disconnect
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-25 18:19:32 +00:00
Aanand Prasad
01a754a7f7
Support links when creating containers or connecting to networks
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-20 17:47:45 +00:00
Aanand Prasad
21a5a0a049
Normalise/fix networking API JSON keys
...
- Use CamelCase
- `auxaddresses` -> `AuxiliaryAddresses`
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-18 18:41:18 +00:00
Aanand Prasad
d00a5bb086
Implement support for network-scoped aliases
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:19:35 +00:00
wenchma
c424148853
Update docker network inspect test
...
This is based on https://github.com/docker/docker/pull/18928
Related to docker/docker#18626
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
2015-12-30 10:43:02 +08:00
Joffrey F
8b322aea2b
Don't expect non-zero exit code when stopping a container
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-12-23 13:01:05 -08:00
Aanand Prasad
9deffc45a1
Merge pull request #863 from thomasboyt/fast-exclude-paths
...
Don't descend into ignored directories when building context
2015-12-16 16:59:12 +00:00
Sumit Sahrawat
2981d013a5
Fix remove_volume return value
...
Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
2015-12-10 10:29:11 +05:30
Thomas Boyt
a49166abf2
Improve get_paths performance by not descending into ignored directories
...
Signed-off-by: Thomas Boyt <thomas@ledgerx.com>
2015-12-08 11:26:25 -05:00
Dustin Falgout
e0c6ec0343
incorporate feedback
...
Signed-off-by: Dustin Falgout <dustin@falgout.us>
2015-12-04 01:27:44 -06:00
Dustin Falgout
e0365fcbfb
Use new methods to raise exceptions in create_host_config.
...
Added tests for the new methods.
Closes #840
Signed-off-by: Dustin Falgout <dustin@falgout.us>
2015-12-03 17:19:59 -06:00
Tomas Tomecek
a9a538abaf
allow interactive exec
...
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2015-12-03 11:07:11 +01:00
Tomas Tomecek
55b67acb5b
tests,integration: ensure container is removed if start fails
...
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2015-12-02 09:46:02 +01:00
Joffrey F
73b51400a1
Fix integration-dind-ssl make task
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-18 15:41:32 -08:00
Joffrey F
de617375f1
Move methods/classes used by all integration tests to helpers.py
...
Ensure setup_module is called at session level, making the test
suite not order dependent. Test files can be invoked independently.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-18 15:40:54 -08:00
Joffrey F
64eac0b71c
Wrong key name in stats test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-18 14:47:48 -08:00
Daniel Nephin
0284eadaff
Merge pull request #805 from sourcelair/enhancement/stats-no-stream
...
Add support for non-stream stats of containers
2015-11-17 10:47:28 -05:00
Daniel Nephin
4e441b2a6b
Merge pull request #834 from lots0logs/814-host-config-mem-swap
...
Add support for MemorySwappiness to client.create_host_config()
2015-11-16 11:37:15 -05:00
Joffrey F
ac148393b1
Merge pull request #851 from docker/remove-ci-transition-files
...
Remove unused files
2015-11-12 11:51:32 -08:00
Joffrey F
c3197dcce7
Merge pull request #850 from docker/mnowster-test-no-log-driver-specified
...
Rebased #798
2015-11-12 11:23:16 -08:00
Joffrey F
c622ff64b9
Remove unused files
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-12 11:21:37 -08:00
Joffrey F
b0bb4ff3a4
Merge branch 'test-no-log-driver-specified' of https://github.com/mnowster/docker-py into mnowster-test-no-log-driver-specified
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-12 11:11:51 -08:00
Joffrey F
c89d366827
Merge pull request #848 from docker/845-fix
...
Client.logs(tail=0) now shows no past logs (expected behavior)
2015-11-12 10:54:51 -08:00
Joffrey F
0e13a0d7fd
Client.logs(tail=0) now shows no past logs (expected behavior)
...
Add test confirming the new behavior.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-12 10:50:01 -08:00
Joffrey F
fe858f5ecc
Add build integration test checking stderr shows up in stream
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-11 17:14:03 -08:00
Joffrey F
cefad9e23b
Update buildargs test to avoid race condition
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-10 17:47:05 -08:00
Leonty
5571d1af76
Support 'buildargs' parameter for docker 1.9.
...
Signed-off-by: Leonty Balovnev <tigreavecdesailes@gmail.com>
2015-11-10 00:23:16 +03:00