docker-py
docker-py copied to clipboard
A Python library for the Docker Engine API
I'm using the `ContainerCollection.run()` method to run containers with the SDK but when the container fails to start (due to wrong parameters or misconfiguration on the Docker Desktop) I can't...
When the container fail to start and the user has set the `remove` flag we should remove the containter, also if the flag is not set, we lose track of...
Hi Why don't we have an option for `mac_address` in the `create_host_config` function? For example, SaltStack calls this function before creating a container and ignores the `mac_address` option because this...
I didn't investigate thoroughly (yet), but see title. The gist of the problem is: * If you have `"credsStore": "desktop"` (or other) configured in `~/.docker/config.json`, `docker-py` picks that up into...
This could be avoided by doing `ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) before` as mentioned on https://github.com/onyxfish/relay/issues/11#issuecomment-26494294 ``` INTERNALERROR> File "/root/rdo/ansible-role-container-registry/.tox/molecule/lib/python3.6/site-packages/docker/client.py", line 40, in __init__ INTERNALERROR> self.api = APIClient(*args, **kwargs) INTERNALERROR> File "/root/rdo/ansible-role-container-registry/.tox/molecule/lib/python3.6/site-packages/docker/api/client.py", line 166,...
I was surprised to figure out that when you pass `since` and `until` arguments to `container.logs()` as `datetime`s they internally are floored down to the closest second with `utils.datetime_to_timestamp(...)`. Millisecond...
CVE-2018-20060 CVE-2023-43804 CVE-2019-11324 When can the urllib3 package used by docker be upgraded?
Closes #3324 Adds the following: - add `platform` parameter handling in `images.api.push` - add tests in `tests/unit/api_image_test.py::ImageTest::test_push_image_with_platform` > `platform` parameter was introduced in [v1.46](https://docs.docker.com/engine/release-notes/27/#api-2)
API [version v1.48](https://docs.docker.com/reference/api/engine/version/v1.48/#tag/Image/operation/ImagePush) accepts platform argument as parameter to be passed to `/images/{name}/push` but it is not implemented in [image.py](https://github.com/docker/docker-py/blob/eeb9ea1937ba5e67087551bdabed858fab5e0ef3/docker/api/image.py#L436). Below function should accept platform i.e `JSON-encoded OCI platform to...
## Generated documentation to help new developers to get up to speed with the docker-py. Hey all. Me and a friend have noticed that it is quite hard to get...