-
Notifications
You must be signed in to change notification settings - Fork 139
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
Build failing with Docker BuildKit enabled #207
Comments
Just for understanding about the testing scenario. |
Re-reading my own description, I realise I didn't make it particularly clear. I built
The container I was trying to build was RHEL8, yes. In all 3 cases, the build fails when running with BuildKit enabled:
When BuildKit is disabled (using |
I'm able to reproduce the same issue when building Python container with docker and The real problem is actually here: https://github.com/sclorg/container-common-scripts/blob/25fa46839e12aaa42d0545db8d93c0572a1f2f69/build.sh#L178 Because the output of the docker builds with buildkit looks differently, we have to find a way how to parse the image id from it and add a regex for it there. Example output:
I'm afraid we'll need to refactor the Or we can come up with a single regex to rule them (the possible outputs) all 🤔 |
There are two more problems, buildkit backed prints its outputs to the stderr instead of stdout, which makes it even harder because $ docker build -f 3.10/Dockerfile.fedora . 2>&1 | tail -n 2
#11 writing image sha256:3ebc8aa33dba18b62e6a4674eb488338fd907cb798c8b0c798d0319016c6614f done
#11 DONE 0.0s The awk with the last part covering the new possible output can look like this:
But it requires:
Doesn't an easier way for getting the image hash exist? |
Description
When attempting to build the
ubi8/s2i-core
image with Docker's new build engine (BuildKit), it fails to tag the resulting image.Build log :
ubi8-s2i-core.txt
Normally I don't build with BuildKit enabled, but the latest version on Mac seems to have defaulted to this, which is how this was noticed.
Is it a known issue?
Thanks
Versions
Docker:
Build host:
and
Steps to reproduce
DOCKER_BUILDKIT=1
The text was updated successfully, but these errors were encountered: