Skip to content

Add --quiet-pull to docker-compose run #7391

@alanbccoe

Description

@alanbccoe

Is your feature request related to a problem? Please describe.
docker-compose run prints info on images it pulls which makes it difficult to grab the output when used in shell scripts.

Describe the solution you'd like
docker-compose up has a flag --quiet-pull to disable printing that information. I'd like the same flag on run please.

Describe alternatives you've considered
Pulling then running, but it's easy to forget if you've already pulled the image but are using this on e.g. a CD system that hasn't pulled it yet. Then extra garbage gets added to your captured stdout (e.g. when doing name=$(docker-compose run bash print-name.sh))

Also, it seems to print to stdout, so redirecting 2>/dev/null doesn't seem to work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions