docker-py
docker-py copied to clipboard
A Python library for the Docker Engine API
`create(...)` currently allows only `host` as `UsernsMode`. This seems to make sense as docker only allows this as an option. However, podman supports [a few others](https://docs.podman.io/en/v4.6.1/markdown/options/userns.container.html). I assume this package...
One of my use-cases is loading a list of containers in one process and then pushing them to be processed in another process, using a standard python queue. While this...
Resolves #3355
I noticed that [the function](https://github.com/docker/docker-py/blob/6e6a273573fe77f00776b30de0685162a102e43f/docker/utils/socket.py#L140-L174) is repeatedly concatenating `bytes`: ```py def consume_socket_output(frames, demux=False): ... # If the streams are demultiplexed, the generator yields tuples # (stdout, stderr) out = [None,...
Fix DeprecationWarning for `datetime.datetime.utcfromtimestamp()` It suggests to use timezone-aware objects to represent datetimes in UTC with `datetime.UTC` but `datetime.timezone.utc` is backwards compatible. Verification run: https://openqa.opensuse.org/tests/5261910#downloads ``` tests/unit/api_container_test.py::ContainerTest::test_log_since_with_datetime /src/tests/unit/api_container_test.py:1305: DeprecationWarning: datetime.datetime.utcfromtimestamp()...
I need to debug the cause of a build failure using docker-py when building from a dockerfile that was created dynamically within python. For example, the error I'm getting is:...
I reported this to moby/moby (https://github.com/moby/moby/issues/50614), but since it also affects Docker SDK for Python, I'd like to report it here as well. Reproducer from https://github.com/moby/moby/issues/50614#issuecomment-3148412359: 1. Run on shell:...
Maybe I'm missing something but from what I know a container must always have a name... when can it be null? See https://github.com/docker/docker-py/blob/main/docker/models/containers.py#L33-L34
Hi, I am trying to run `cqlsh` using python SDK but whenever I run it doesn't give any output. `container.exec_run('cqlsh', stdin=True, tty=True)` equivalent to `docker exec -it cassandra cqlsh`
Fixes #3349 - see there for details