Category : dockerpy

I’m trying to create run a containerized application using docker-py, and I need to write input data to its STDIN, and read from its STDOUT. Basically this kind of workflow echo "hello" | docker run -i –rm busybox sh -c "cat -" but in Python. In short, I’ve tried the method described here for the ..

Read more

I’m not able to filter images from client.images.list() https://docker-py.readthedocs.io/en/stable/images.html#docker.models.images.ImageCollection.list The documentation says "name (str) – Only show images belonging to the repository name" client.images.list(name="elixir") EXPECTATION: [<Image: ‘elixir:1.10-alpine’>] ACTUAL: [<Image: ‘postgres:latest’>, <Image: ‘node:15-alpine’>, <Image: ‘elixir:1.10-alpine’>, <Image: ‘nginx:stable-alpine’>] Bug? Versions: Docker version 20.10.0, build 7287ab3 >>> import docker >>> docker.__version__ ‘4.4.0’ Source: Docker..

Read more

I have the following structure – Dockerfile | _ apps | -myapi | – api-1.0.8.json In the Dockerfile, I have this FROM mybase # Simply need to update config file ARG asset_api=myapi ARG asset_api_version=1.0.8 COPY $PWD/apps/${asset_api}/api-${asset_api_version}.json /api.json This works fine when running CLI docker build command Using the docker sdk for python, I created my ..

Read more