| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
|
|
| |
.dockerignore. This causes an IndexError with patterns ending
with '**', e.g. 'subdir/**'. This adds a missing boundary check
before checking for trailing '/'.
Signed-off-by: Veli-Matti Lintu <veli-matti.lintu@nosto.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
| |
both are set. Continue raising an exception for api versions <1.25.
Signed-off-by: David Steines <d.steines@gmail.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
|
|
| |
drivers used
Signed-off-by: Artem Bolshakov <either.free@gmail.com>
|
|
|
|
| |
Signed-off-by: Jakub Goszczurny <szczurmys@o2.pl>
|
|
|
|
|
|
|
|
| |
Container network functions checked 'image' as resource ID and not
'container'. This caused a traceback when using container as named
argument.
Signed-off-by: Matthew Berry <mtberry89@gmail.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|
|
|
| |
Signed-off-by: Joffrey F <joffrey@docker.com>
|
|\
| |
| | |
allow ipv6 :: notation in split_port (using re)
|
| |
| |
| |
| |
| |
| | |
The test was copied from https://github.com/greybyte/docker-py/commit/ccec87ca2c2aacfcfe3b38c5bc7d59dd73551c51
Signed-off-by: kaiyou <pierre@jaury.eu>
|
| |
| |
| |
| | |
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>
|