docker-py
                                
                                
                                
                                    docker-py copied to clipboard
                            
                            
                            
                        A Python library for the Docker Engine API
We are using docker library to get the docker container stats. We are running a python program periodically to get the stats. The python program is running in a docker...
I encountered an issue when building a Docker image using the Python Docker SDK. The behavior occurs only with a specific base image so far: gradle:7.6-jdk17-alpine. In my Dockerfile, I...
I have spent several hours trying to get the following example working ```bash import docker client = docker.from_env() # using a list of image strings formatted "::" for image in...
I'm attempting to create a container with volume in some host path `/home/ubuntu/data` bound to a container path `/mnt/data`, but the volume is instead created and bound to `var/lib/docker/vfs//home/ubuntu/data`. Is...
Observed in main (current latest commit db7f8b8bb67e485a7192846906f600a52e0aa623) The method `UnixHTTPConnectionPool._new_conn` ( [here](https://github.com/docker/docker-py/blob/db7f8b8bb67e485a7192846906f600a52e0aa623/docker/transport/unixconn.py#L39) ) does not update the number of connections in the pool in the way that the parent `HTTPConnectionPool`...
When trying to upload the file `docker-7.1.0-py3-none-any.whl` with twine, I get the error message `InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.3` And sure enough, the...
Both `stop` and `restart` have supported customizing the signal that is sent to the container since api version `v1.42` but it seems that it has not been added here. It...
```shell % pip list | grep docker docker 7.1.0 types-docker 7.1.0.20240827 ``` from `errors.pyi`: ```python class ContainerError(DockerException): container: Container exit_status: Incomplete command: Incomplete image: Incomplete stderr: str | None def...
Closes #3304 This PR aims to provide support for signal that is sent to the container in `stop` and `restart` according to `API v1.42`. Adds following changes: - `signal` argument...
Closes #3254 Added following changes: - Added `ClusterVolumeSpec ` in `docker.types` - Added `cluster_volume_spec` arg and its handling to `create_volume` api - Added tests in `dockertypes_test.py` and `api_volume_test.py`