Skip to content

Question: What is the equivalent in docker-py to "--progress=plain" or BUILDKIT_PROGRESS=plain? #3347

Open

Description

@JustGitting

I need to debug the cause of a build failure using docker-py when building from a dockerfile that was created dynamically within python.

For example, the error I'm getting is:

...
Step 4/14 : RUN pip install uv
Step 5/14 : COPY .requirements .
Step 6/14 : RUN uv pip install --no-cache-dir -r .requirements
...
RuntimeError: Docker error: The command '/bin/sh -c uv pip install --no-cache-dir -r .requirements' returned a non-zero code: 1.

The docker daemon logs (with debug=true in daemon.json) doesn't show anything obvious.

If using the CLI, we can add docker build --progress=plain ... or use export BUILDKIT_PROGRESS=plain to show the details.

However, I want to do this within docker-py and it's not obvious how to do this looking at the docs.

Is there a way to enable the equivalent of "--progress=plain"| " BUILDKIT_PROGRESS=plain" in docker-py?

Thanks for any suggestions.

Activity

  1. changed the title [-]Question: What is the equivalent in docker-py to "--progress=plain" or BUILDKIT_PROGRESS=plain[/-] [+]Question: What is the equivalent in docker-py to "--progress=plain" or BUILDKIT_PROGRESS=plain?[/+] on Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions