-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
VOLUME is persisting with buildkit, but not with plain docker (18.09.2) #880
Comments
It's not that the old builder doesn't persist the directory but a side effect that in old builder all There is a bugreport for that behavior in moby/moby#3639 . Buildkit fixes it by making the |
Thanks! It was an incompatibility I discovered switching the build proces over, but good to know that the buildkit's behavior was actually the intended behavior. tmpfs was the workaround we already switched to, so good to know we can keep doing that! |
Platform: OSX Mojave
It looks like volumes created with VOLUME persist through build steps (and even in the final image) when using the buildkit. The standard Docker clear the VOLUME, and this is also what I understand should happen from the documentation
Dockerfile:
the standard docker build doesn't persist /test/ between steps so the 'cat' fails:
but with buildkit the volume is persists and the final RUN can still see the test file:
The text was updated successfully, but these errors were encountered: