I use docker to run a bash script and I need to capture its output and just its output.
docker run --rm --volume=/tmp/test.sh:/tmp/test.sh:ro --entrypoint=/bin/bash node:4.6.0 -xe /tmp/test.sh
The problem is that I also get the output from docker downloading the image. Thinks like:
Unable to find image 'node:4.6.0' locally
4.6.0: Pulling from library/node
6a5a5368e0c2: Pulling fs layer
7b9457ec39de: Pulling fs layer
ff18e19c2db4: Pulling fs layer
6a3d69edbe90: Pulling fs layer
0ce4b037e17f: Pulling fs layer
Is there a way to only capture the output generated by the bash script run by docker without any additional messages/errors/warnings that docker may output?
-voption