docker-py
docker-py copied to clipboard
A Python library for the Docker Engine API
It seems to be impossible to pass ephemeral `Dockerfile` to build command together with build context. Here is command line use case: docker build -t . -f-
I'm currently using docker-py 3.7.0 on an Ubuntu VM running Docker version 17.09.0-ce. I'm having difficulty in what appears to be properly logging into docker. I've tried to get the...
Hello, it seems that any output from the container after the last newline character is ignored; for instance, if I run: ```python import docker client = docker.from_env() hello_world = client.containers.run('alpine',...
The documentation for `Container.top()` consistently claims that it returns a string. It does not; instead it returns a parsed JSON object which looks like this: ```json { "Processes": [ [...
using a Dockerfile similar to the following: ARG BASE_IMAGE="3.6" FROM amd64/python:${BASE_IMAGE}-slim-buster WORKDIR /app COPY requirements.txt ./ RUN pip install -r requirements.txt COPY . . CMD [ "python3", "-u", "./main.py" ]...
I try to get container logs using stream but instead of getting a line every time I get a single character For example: If the line in log is: ```172.17.0.1...
Hi, I am trying to run a python script that uses the Dataframe library of Dask inside a docker container. If I run the container manually by starting the container...
When running `docker.APIClient.build()`, there seems to be no dangling build cache after when running `docker builder prune`. Could someone explain why this may be the case? Im thinking along the...
In a script `~/Documents/Scratch/test_import_docker.py` with the single statement `import docker`, I'm getting the following `ImportError`: ``` Traceback (most recent call last): File "test_import_docker.py", line 1, in import docker File "/home/kurt/.local/lib/python2.7/site-packages/docker/__init__.py",...
#### Missing feature from Docker in API The docker swarm init parameter `--data-path-port` is not supported by the docker-py low-level API. (this at least according to https://docker-py.readthedocs.io/en/stable/api.html#module-docker.api.swarm) The parameter is...