| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
Signed-off-by: Chris Mark <chrismarkou92@gmail.com>
|
|/
|
|
|
|
|
|
|
|
|
| |
The `from_env` method on the `docker` module passed `None` as the
value for the `timeout` keyword argument which overrode the default
value in the initialiser, taken from `constants` module.
This sets the default in the initialiser to `None` and adds logic
to set that, in the same way that `version` is handled.
Signed-off-by: grahamlyons <graham@grahamlyons.com>
|
|
|
|
|
|
|
|
| |
network equivalent.
Small docfixes
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|\
| |
| |
| |
| |
| | |
https://github.com/TomasTomecek/docker-py into TomasTomecek-add-env-support-to-exec
Signed-off-by: Joffrey F <joffrey@docker.com>
|
| |
| |
| |
| | |
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
According to Docker's API documentation [1]. The parameter name
is `CpusetCpus` not `CpuSetCpus`.
[1] https://docs.docker.com/engine/api/v1.25/#operation/ContainerCreate
Signed-off-by: Dan Liew <daniel.liew@imperial.ac.uk>
|
| |
| |
| |
| | |
Signed-off-by: Dan Liew <daniel.liew@imperial.ac.uk>
|
|\ \
| |/
|/| |
Add cpu_count, cpu_percent, nano_cpus parameters to container HostConfig.
|
| |
| |
| |
| |
| |
| | |
for new parameters are changed.
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
|
| |
| |
| |
| | |
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
|
|\ \
| | |
| | | |
Adds a few model properties
|
| | |
| | |
| | |
| | | |
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
|
| |/
| |
| |
| |
| |
| |
| |
| | |
The Docker API seems to respond with a 'null' value for the 'Labels'
attribute from containers that were created with older Docker versions.
An empty dictionary is returned in this case.
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
|
|/
|
|
| |
Signed-off-by: Rob Kooper <kooper@illinois.edu>
|
|
|
|
|
|
| |
Some cleanup in ContainerConfig + warning if volume_driver is provided (API>1.20)
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
|
|
|
|
| |
"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>
|
|\
| |
| | |
Allow port range like 8000-8010:80
|
| |
| |
| |
| | |
Signed-off-by: SeungJin Oh <crierr@naver.com>
|
|\ \
| | |
| | | |
Allow events daemon command to read config.json
|
| |/
| |
| |
| | |
Signed-off-by: Damien Nadé <github@livna.org>
|
|/
|
|
| |
Signed-off-by: Nils Krabshuis <nils.krabshuis@redwood.com>
|
|\
| |
| | |
Implement secrets API
|
| |
| |
| |
| | |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|/
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
|
|
|
| |
Technically we shouldn't be passing them as binds, but the daemon
doesn't seem to mind.
Fixes #1380
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| | |
Scope is added in volume after docker 1.12
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Signed-off-by: pacoxu <paco.xu@daocloud.io>
add ut test for volume scope and no specified name create
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
try to fix ut failure of volume creation
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
try to fix ut failure of volume creation
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
Scope is added in volume after docker 1.12
Signed-off-by: pacoxu <paco.xu@daocloud.io>
Scope is added in volume after docker 1.12
Signed-off-by: pacoxu <paco.xu@daocloud.io>
|
| |
| |
| |
| | |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
| |
| |
| |
| | |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|\ \
| | |
| | | |
Fix #1351
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Fix TypeError when getting the tags property from an image that has
no tags. Ex: An image pulled by cryptohash. It is handled like when
the image doesn't have defined the RepoTags member.
Signed-off-by: Alejandro E. Brito Monedero <alejandro.monedero@gmail.com>
|
|\ \ \
| |/ /
|/| | |
Make resources hashable, so that they can be added to `set`s
|
| |/
| |
| |
| | |
Signed-off-by: Flavio Curella <flavio.curella@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
| |
| |
| |
| | |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|\ \
| | |
| | |
| | |
| | |
| | | |
into dzimine-dz-fix-mount_options
Signed-off-by: Joffrey F <joffrey@docker.com>
|
| |/
| |
| | |
Signed-off-by: Dmitri Zimine dz@stackstorm.com
|
|/
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|\
| |
| | |
Fix auth config path on Windows
|
| |
| |
| |
| |
| |
| |
| | |
The Engine client looks *only* at the USERPROFILE environment variable
on Windows, so we should do that too.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
|
|\ \
| | |
| | | |
Start to rename docker-py to docker-sdk-python
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Pretty much everything except renaming the GitHub repo and
documentation, which is not actually done yet. Nearer the release
we can do a search/replace for all that stuff.
Ref #1310
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
|