Skip to content

Does buildkit support --pull Always attempt to pull a newer version of the image #1275

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

Open
lugeng opened this issue Nov 27, 2019 · 2 comments

Comments

@lugeng
Copy link
Contributor

lugeng commented Nov 27, 2019

Question:
As i know when I use old 'docker build', it has args like "--pull",it will always pull new base image in case the base image is overwrite remotely.
Does buildctl owns such args?

@tonistiigi
Copy link
Member

buildkitd with oci worker always checks that the remote image is current by default. With containerd worker, if you have a local image in containerd image store but you want to ignore it, you can use --opt image-resolve-mode=pull

@oldthreefeng
Copy link

when use BUILDKIT=1 ; we found --pull is an illegal option. buildkit will use old image in build FROM image. this confuse me many times.
any solution for docker build --pull with buildkit ?? @tonistiigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants