The Wayback Machine - https://web.archive.org/web/20200706140018/https://github.com/docker/compose/issues/7391
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alanbccoe opened this issue Apr 21, 2020 · 0 comments
Open

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

alanbccoe opened this issue Apr 21, 2020 · 0 comments
Labels

Comments

@alanbccoe
Copy link

@alanbccoe alanbccoe commented Apr 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.