How to view logs / stdout when building an image? #1362
-
|
When building an image, it looks like Question: Is there a way to see the complete stdout/stderr output of the build process, either during or (ideally also) after the build? I looked at the help/arguments for ExampleHere's a very simple And here's my build command: container build --debug --tag test-image --file Containerfile .(I tried with and without This produces output like this: [+] Building 0.1s (5/5) FINISHED
=> [resolver] fetching image...docker.io/library/alpine 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> oci-layout://docker.io/library/alpine@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 0.0s
=> => resolve docker.io/library/alpine@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 0.0s
=> CACHED [linux/arm64 1/2] RUN echo "Hello from Alpine!" 0.0s
=> exporting to oci image format 0.0s
=> => exporting layers 0.0s
=> => exporting manifest sha256:70db5aa51585cad8ee2d460cfbb34905aad1dd36c94ed1a7f8c82a356234863c 0.0s
=> => exporting config sha256:e85f9416f1e001cdbae132e8415b0da393e3bfba2ce9dd5cba49fe6f62e4bf99 0.0s
=> => exporting manifest list sha256:52980ef96e07a560ec6173959f0734c1b4103e868db9193f53cf2742d339c6b1 0.0s
=> => sending tarball 0.0s
Successfully built test-image:latestTo reiterate, I'd like some way to see the line Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Try the command below. container build --debug --tag test-image --file Containerfile . --progress plain --no-cacheI got the output below with the #5 [linux/arm64 1/2] RUN echo "Hello from Alpine!"
#5 0.041 Hello from Alpine!
#5 DONE 0.0sFWIW there are lots of quality of life updates that need to be made to fix any |
Beta Was this translation helpful? Give feedback.
Try the command below.
container build --debug --tag test-image --file Containerfile . --progress plain --no-cacheI got the output below with the
Dockerfileyou pasted and it does output the"Hello from Alpine!"FWIW there are lots of quality of life updates that need to be made to fix any
stdout/stderroutputs for most (if not all) of the commands. So if that is does not 100% accomplish what you are looking for, I can take a deeper look into it.