docker-py
docker-py copied to clipboard
A Python library for the Docker Engine API
Hi, I'm using the latest version `docker==5.0.3` and it seems like the [login](https://docker-py.readthedocs.io/en/stable/client.html#docker.client.DockerClient.login) function doesn't work as expected. I tried to collect a minimal example but it only works when...
# Issue As of now, options such as `stream`, or `timeout` are not passed to the call to the docker API. # Cause These options are circulated through the headers...
So on linux, we have noticed some strange behavior using the python sdk. it seems that it takes a very long time (minutes) for the sdk to connect to the...
`docker-py` version: `3.7.0` `python` version: `3.6.6` `docker` version: ``` 10:04:15 Client: 10:04:15 Version: 18.09.1 10:04:15 API version: 1.39 10:04:15 Go version: go1.10.6 10:04:15 Git commit: 4c52b90 10:04:15 Built: Wed Jan...
hello: When I create a container with the document, it always prompts me that the api attribute does not exist: https://docker-py.readthedocs.io/en/stable/api.html   After testing, I found that the api...
``` C:\Users\allen>pip list --outdated --format=columns | findstr docker docker 2.6.1 3.3.0 wheel ``` produces the dependency chain: ``` Collecting pypiwin32==219; sys_platform == "win32" and python_version < "3.6" (from docker==3.3.0) Using...
``` container = docker_client.containers.run(image = image, command = cmd, detach = True, auto_remove = False, ) container.wait(timeout = 10) ``` Without a timeout, everything works fine. With a timeout I...
import docker client = docker.DockerClient("tcp://192.168.186.144:2375") socket = client.containers.get("cb07b0ec35c2").exec_run("/bin/bash", stdin=True, socket=True) socket._sock.sendall(b"ls / -la\n") data= socket._sock.recv(1024) print(data) try: unknown_byte = socket._sock.recv(1024) print(unknown_byte) while True: part = socket._sock.recv(1024) data += part if...
If a container exits non-zero, an `ContainerError` is thrown, but this object only provides access to stderr, not stdout. Some binaries write their logs/errors to stdout instead of stderr, or...
raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localunixsocket/v1.41/containers/create?name=universe-0r4JfN-0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/wuk/universe/universe/remotes/docker_remote.py", line 264,...