Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to see all output when executing `docker build`

The docker build is scrolling the output.

docker build -t "setuppython"  .

In the screenshot the area enclosed in the red rectangle is being scrolled – and the prior output is lost. I would like to be able to see all output without it being hidden:

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Here is the Dockerfile

from ubuntu:20.04
WORKDIR .
RUN echo "HOME is $HOME"
COPY  ./setup-python.sh .

RUN ./setup-python.sh

How can that be done?

>Solution :

Set the --progress=plain option, so modify the build command as follows:

docker build -t "setuppython" --progress=plain .

The --progress argument accepts the values auto, plain, and tty. Using tty, the output will try to be "nicer" for interactive terminals (so it overwrites itself), and plain will simply output everything. The auto setting (default) will try to determine which of the two is more appropriate for the current environment.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading