1

I am using the standard docker command:

docker build -t XXX -f Dockerfile .

to build my container. I would like to know if there is a way to get some more detailed logs about which files are being copied into the image.

Alternatively, is there a way from the DockerFile to list the files in a directory to the stdout (commandline from where docker command was run or log to a file).

Unfortunately my container dockerfile is crashing at a later point so I cannot examine the image as it is not being created.

shelbypereira
  • 2,097
  • 3
  • 27
  • 50
  • `RUN ls somedir` not work? – Lei Yang Jul 15 '21 at 12:57
  • 1
    yes works! note that I needed ls -l without -l I do not get the output. seems that for my version I need to also add --progress plain on the command line (https://stackoverflow.com/questions/65936425/dockerfile-run-ls-l?noredirect=1&lq=1) – shelbypereira Jul 15 '21 at 13:16

0 Answers0