docker-py
docker-py copied to clipboard
A Python library for the Docker Engine API
I am trying to run a python program using `tqdm` through the docker python sdk. Here code to reproduce what I am talking about: ```python import docker client = docker.from_env()...
I can't rely on an ssh agent to provide a private key. Sometimes I need to provide a password, sometimes I need to manually load the key file. But the...
It seems like there are some hardcore bugs since certain calls / methods of the SDK run endlessly for some reason and sometimes they even kill Docker completely which forces...
As we are using swarm on remote servers, using docker CLI we take advantage of `docker context`. My expectation was, that the `docker` library will behave similarly to CLI thus...
Problem occured when building `linux/amd64` image (by setting platform parameter) on M1 mac for different arch. I isolated a case for this bug and found workaround. The problem is when...
I'm running the following code and getting a connection error. Might be an issue with the build itself but the error is hidden. ``` docker_client = docker.from_env() image = docker_client.images.build(tag=f'{name}:{version_tag}',...
>>> import docker >>> client = docker.from_env() >>> f=open("xxxx.tar", 'r', encoding="ISO-8859-1") >>> client.images.load(f) log : Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request six.raise_from(e, None) File "",...
I want to stream a running containers stdout logs to my interpreter however the logs don't appear when the container is running. When the container finishes all the logs are...
## Environment: - Python: *Python 3.8.10* - Docker: *Docker version 20.10.14, build a224086* - docker (library): *docker-5.0.3* ## Issue Description: On running a program inside a container, initialized with `1g`...
Is it possible to reach env path of a container?