Enable dockerfile-based image build logs with buildkit #5546
andrew-demb
started this conversation in
General
Replies: 2 comments 4 replies
-
While emulating failed build, I found that the build log will be displayed, but in the success case, it's not displayed. It is intended or a tech limitation?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
There was a technical limitation with parallel building of images using buildkit. When embedding buildkit it does not allow customizing stdout stream, which would certainly break parallel builds output. That's why buildkit works in quiet mode when building several images. Though buildkit output should work as usual when building only one image, or when parallel mode is disabled. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to use the mount cache but get some problems while using it.
Dockerfile
Error:
After visiting https://docs.docker.com/go/buildkit/ I found that I need to enable it with env variable:
DOCKER_BUILDKIT=1
After that my build going to be run, but there is no logs of build and warning message in logs refers to the closed issue in
docker/cli
:Issues I found while searching for source of problem:
The question is: can werf provide a bit more detail in warning about the required steps to use BuilKit with enabled build logs?
Werf:
Docker:
Beta Was this translation helpful? Give feedback.
All reactions