Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd --quiet-pull to docker-compose run #7391
Open
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Is your feature request related to a problem? Please describe.
docker-compose runprints 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 uphas a flag--quiet-pullto disable printing that information. I'd like the same flag onrunplease.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.