-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.1.0 seemed to revert build output improvements #8876
Comments
As extra input in case this helps, |
build output is the one from buildkit, which is also used by |
I guess this is a side effect for #8818 cc @ulyssessouza |
It seems like Docker BuildKit was enabled by default in 2.0 and now is disabled by default in 2.1. I was able to restore the previous behaviour by simply setting the environment variable So: DOCKER_BUILDKIT=1 docker-compose up --build (If you run with |
yes, with #8818 buildkit is only used when configured to, which should be the default on any recent docker installation |
Thanks for the behavior fix @in-principio and the clarification @ndeloof. I appreciate that this is an intentional behavior change, am I right in assuming that the reason |
yes, the "progress" renderer on |
I was confused after reading this issue because I thought I had buildkit enabled but compose v2.1 still used the old build. It turns out I have installed buildx but buildkit wasn't enabled in the deamon so compose used the old build. @ndeloof Could/should buildkit be used for builds if buildx is installed (to replace the docker build command not just as a plugin). It'd be easy to check if buildx is available like it's done with snyk but I'm not sure if it can be easily detected if it is set as the default builder. Maybe even buildx itself could be used for building if it's set as the default builder. |
buildkit should be used if buildkit is enabled (either client side with |
Description
In 2.0.0 (and 2.0.1) the build output changed from how it looked in v1 to one more richly colored, with collapsed sections for each step in the build. 2.1.0 appears to have reverted that. Is this option now hidden behind some config? Has it been reverted due to some issue? Or was this an unintentional change?
Steps to reproduce the issue:
docker compose build
Describe the results you received:
The output looks like compose v1 (not much coloring, continually prints to the screen rather than collapsing different sections and condensing output.
Describe the results you expected:
I expected the colored and section-collapsed output I experienced with version 2.0.1
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker compose version
:Output of
docker info
:Additional environment details:
N/A, let me know if you need to know anything else
The text was updated successfully, but these errors were encountered: