Commit Graph

1679 Commits

Author SHA1 Message Date
Joffrey F 902c7a76cc Docs and tests for pids_limit.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-23 17:05:08 -07:00
Joffrey F bf2235bc12 Merge branch 'master' of https://github.com/aiden0z/docker-py into aiden0z-master 2016-08-23 17:02:40 -07:00
Joffrey F d33e069552 Merge branch 'DaoCloud-feature/memory_support' 2016-08-23 15:32:50 -07:00
Kay Yan fc72ac66e9 support MemoryReservation and KernelMemory
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2016-08-23 15:32:06 -07:00
Joffrey F 7b7e07e63b Merge branch 'srikalyan-master' 2016-08-23 15:16:29 -07:00
Joffrey F 797f1edc20 Merge branch 'master' of https://github.com/srikalyan/docker-py into srikalyan-master 2016-08-23 15:16:15 -07:00
Joffrey F 3709c709f3 Merge branch 'joshpurvis-jp-cpushares' 2016-08-23 15:12:48 -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 abd461150a Merge pull request #1081 from tescalada/master
1059-Fixing a bug with multiple json objects
2016-08-23 15:10:56 -07:00
Joffrey F 0acdd19665 Merge pull request #1131 from Knetic/dnsopts
Implemented dns_opt support (from api 1.21)
2016-08-23 15:04:25 -07:00
Joffrey F c5a81002c6 Merge pull request #1127 from docker/1085-service-support
Service support implementation
2016-08-23 14:58:43 -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 f53cdc3a07 Rename LogDriver to DriverConfig for genericity
The class can be used for both log driver and volume driver specs. Use
a name that reflects this.

Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-22 16:11:48 -07:00
Joffrey F 1e2c58de9e Add new pages to mkdocs index
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-19 17:02:33 -07:00
Joffrey F 8e97cb7857 Services API documentation (WIP)
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-19 16:51:39 -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
Joffrey F 172e95d52f Swarm service API implementation
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-17 12:21:34 -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
Tomas Tomecek 3062ae4348 docker client consistency: don't quote ':/'
E.g.

docker client

`/v1.21/images/localhost:5000/busybox/push?tag=`

docker-py

`/v1.21/images/localhost%3A5000%2Fbusybox/push`

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2016-08-17 12:20:13 -07:00
Joffrey F 95d9306d2a Exclude requests 2.11 from setup.py to work around unicode bug
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-17 12:20:13 -07:00
Joffrey F e2655f6584 Merge pull request #1162 from cpuguy83/remove_execdriver_refs
Remove references to "ExecutionDriver"
2016-08-16 11:29:50 -07:00
Brian Goff 0416338bae 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-16 13:36:42 -04: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
Daniel Nephin 7de30c3a9b Merge pull request #1142 from TomasTomecek/dont-url-encode-repository-name
docker client consistency: don't quote ':/'
2016-08-10 14:52:07 -04:00
Tomas Tomecek 08b284ab39 docker client consistency: don't quote ':/'
E.g.

docker client

`/v1.21/images/localhost:5000/busybox/push?tag=`

docker-py

`/v1.21/images/localhost%3A5000%2Fbusybox/push`

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2016-08-10 09:30:19 +02:00
Joffrey F 876e7b49da Merge pull request #1156 from docker/1155-requests-bug
Exclude requests 2.11 from setup.py to work around unicode bug
2016-08-09 13:34:53 -07:00
Joffrey F a28a0d2355 Exclude requests 2.11 from setup.py to work around unicode bug
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-09 13:20:17 -07:00
George Lester 93b4b4134e Implemented dns_opt support (from api 1.21)
Signed-off-by: George Lester <glester491@gmail.com>
2016-08-07 14:23:22 -07:00
Joffrey F e1774c4c5b Reference swarm methods in api.md file.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 17:05:25 -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 fdfe582b76 Update Swarm API docs
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-04 15:12:43 -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 df31f9a8ce Update Swarm documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-03 18:00:52 -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
minzhang 9fdc8d476d Added support for docker swarm api version 1.24.
3 API are added
swarm_init()
swarm_leave()
swarm_join()

Signed-off-by: Min Zhang <virgilerin@gmail.com>

Signed-off-by: Min Zhang <virgilerin@gmail.com>
2016-08-03 16:57:44 -07:00
minzhang 44868fa0fa Added support for docker swarm api version 1.24.
3 API are added
swarm_init()
swarm_leave()
swarm_join()

Signed-off-by: Min Zhang<minzhang.work@gmail.com>

Signed-off-by: Min Zhang <virgilerin@gmail.com>
2016-08-03 16:57:44 -07:00
Joffrey F 20b29d048e Merge pull request #1151 from docker/test_fixes_1.12
Test fixes and updated Makefile for 1.12 testing
2016-08-03 16:57:21 -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
Daniel Nephin 67098f38df Merge pull request #1150 from docker/1148-update-headers-fix
Avoid crashing in update_headers decorator when headers kwarg is None
2016-08-02 22:05:27 -04:00
Joffrey F ae7cb4b99f Avoid crashing in update_headers decorator when headers kwarg is None
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-02 17:25:50 -07:00
Joffrey F 650cc70e93 Merge pull request #1145 from jtakkala/1144-sysctl-support
Add support for sysctl when creating container
2016-08-01 17:32:18 -07:00
Jari Takkala dec29e1c10 Add support for sysctl when creating container
Closes #1144

Signed-off-by: Jari Takkala <jtakkala@gmail.com>
2016-08-01 23:43:52 +01:00
Joffrey F f99dc45d82 Merge pull request #1146 from aanand/config-path-debug
More explicit debug for config path logic
2016-08-01 10:59:32 -07:00
Tristan Escalada f8b843b127 1059-Fixing a bug with multiple json objects
This splits the text by CRLF and then json.loads each part
independently instead of attempting the parse the whole string.

Signed-off-by: Tristan Escalada <tristan@escalada.us>
2016-08-01 11:05:32 -04:00
Aanand Prasad f006da6a43 More explicit debug for config path logic
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-08-01 14:52:39 +01:00
Joffrey F 8a6b1843c3 Merge pull request #1143 from docker/1135-ipv6-docker-host
Add support for IPv6 docker host connections.
2016-07-28 12:51:44 -07:00