docker-py
docker-py copied to clipboard
A Python library for the Docker Engine API
We get some infrequent/non-deterministic errors when using `docker` through `testcontainers`, a typical traceback looks like this (when trying to get logs from a container, but I think it has happened...
Hello, I just started taking a look at `docker-py` I'd like to know the best python replacement for the docker command: ``` docker run \ -p 5002:5002 \ -e "HOME=${HOME}"...
# Short description and how to reproduce If I mount a volume or host path to `/var/lib/docker` inside a container, using docker-py: `>>> client.containers.run('alpine', volumes=['my_volume:/var/lib/docker'])` , a very strange behavior...
Seem to be unable to publish ports to the host w/ docker run. Perhaps I'm doing something wrong ``` conatiner = client.containers.run( image='mongo:3.2.11', detach=True, name='name', network_mode='host', ports={ '{}/tcp'.format(27017): ('127.0.0.1', 30000)...
The server is `docker-1.13.1`. Packages: ``` $ pip3 freeze | egrep (requests|urllib) requests==2.13.0 urllib3==1.20 ``` The code is quite simple: ``` for l in d.logs(c, follow=True, stream=True): print(l) ``` ```...
Currently, the `Networks.connect` method takes the `driver_opt` parameter in order to pass to the driver some custom values: [https://docker-py.readthedocs.io/en/stable/networks.html#docker.models.networks.Network.connect](https://docker-py.readthedocs.io/en/stable/networks.html#docker.models.networks.Network.connect). I have a custom Network Plugin which uses such parameters to...
https://github.com/docker/docker-py/blob/a48a5a9647761406d66e8271f19fab7fa0c5f582/docker/transport/sshconn.py#L34
`cmds.sh` connects through SSH and executes several commands: ``` #!/usr/bin/env python3 import docker if __name__ == "__main__": client = docker.DockerClient("ssh://localhost", use_ssh_client=True) client.ping() client.images.list() client.containers.list() ``` Running this script spawns a...
[This page](https://docker-py.readthedocs.io/en/latest/images.html#module-docker.models.images) says that it documents the methods on `client.images`, but `client` has no `images` attribute. ```sh $ python Python 3.6.4 (default, Aug 22 2019, 12:24:29) [GCC 4.2.1 Compatible Apple...
Hi! Description of https://pypi.org/project/docker-py/ gives no hint that the package is deprecated. Would be lovely to fix that, cause it creates much confusion, and leads to installing both packages which...