1

Inside a dockerfile I had:

RUN python3 --version

While I see the command being executed when I build my docker image like this:

docker build -t dn ./

I'm not seeing an output. So I though about changing it to:

RUN echo python3 --version

But that didn't solve my problem, any suggestions?

Note: I don't want all commands to show output in terminal only the ones I specify.

Omer
  • 41
  • 6
  • 1
    Does the recommendation in [When using BuildKit with Docker, how do I see the output of RUN commands?](https://stackoverflow.com/questions/55756372/when-using-buildkit-with-docker-how-do-i-see-the-output-of-run-commands) (`docker build --progress=plain`) help? – David Maze May 09 '22 at 11:21
  • Hi @DavidMaze, kindly see my output under Ben's answer. – Omer May 09 '22 at 11:26

1 Answers1

0

Try setting the environment variable DOCKER_BUILDKIT=0 and then execute the docker build command again. DOCKER_BUILDKIT=0 docker build -t dn ./ as explained here https://makeoptim.com/en/tool/docker-build-not-output

Ben
  • 309
  • 1
  • 14