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
Add "--load" to "docker buildx build" commands in Makefile #3062
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rhuss The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@rhuss What version of docker you are using ? It is working fine for me. |
I'm using Docker Desktop 4.21.1 on macOS 13.5 and an M1 (arm64) chip. For Buildkit, I'm using As said, I get a
which cause the push to fail. Do you see the same warning ? |
@sivanantha321 do you think its better to open an issue first ? (btw, the push might also "seem" to work if you have already built the image at some point in time with "docker build", but it don't push then the just-built image but an older one). I think a |
@rhuss No, I am not getting any warnings. I am using Docker Engine 24.0.5 on Ubuntu 22.10 and Buildkit github.com/docker/buildx v0.11.2 9872040. Yes, It would be nice to create an issue. Thanks for the PR :)
|
@rhuss It seems buildkit is not the default builder for other platforms other than linux. Maybe that's why it is working for me. Set Buildx and BuildKit as the default builder on Linux. moby/moby#43992 |
Created #3065 to track the problem. |
Why is the DCO check failing ? I think I have signed this commit properly already. |
Sign off is missing in your commit message. (e.g) Signed-off-by: Sivanantham Chinnaiyan sivanantham.chinnaiyan@ideas2it.com |
…ble to push the Docker image afterwards Signed-off-by: Roland Huß <rhuss@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot reproduce this either.
What this PR does / why we need it:
For creating Docker images, Docker BuildKit is used. However, "docker buildx build" just store the created image in the build cache so that a subsequent "docker push" won't work.
In order to make targets like
make deploy-dev-sklearn
make work you either need to specify--push
fordocker buildx build
, or, as in this PR use:Without this fix I get this error:
I wonder how this ever has worked before (except maybe that you have used "docker build" before to load the image into the runtime automatically.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):(no issue yet, but I can open one if required)
Type of changes
Please delete options that are not relevant.
Feature/Issue validation/testing:
Please describe the tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.
make deploy-dev-sklearn
works now without an error:Special notes for your reviewer:
Checklist:
Release note: