-
Notifications
You must be signed in to change notification settings - Fork 3
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
issue when including image "cannot copy to non-directory" #1
Comments
Oh, this is weird! I think you have discovered a problem in Docker Buildkit itself. Consider the Dockerfile below (without any include syntax): FROM jupyter/datascience-notebook
COPY --from=openjdk:11.0.7-jre-buster / / This failsDOCKER_BUILDKIT=1 docker build -t pyjdk . Logs:
But this worksdocker build -t pyjdk . Logs:
Assuming you are using the latest version of jupyter/datascience-notebook - it inherits from ubuntu:focal. On the other hand, openjdk inherits from debian:buster. Since the base images systems don't match - things might go wrong when copying one filesystem on top of another. |
Hi, I can agree that using different base image can make it a nice mess. However - you found out that this copying only fails what run with DOCKER_BUILDKIT=1 which (as far as I understand) is a new build system for docker. Anyway - for my particular case I will anyway try to find at least images with the same base distro. |
Hello.
First of all thanks for the tool - this is a good idea to have one like this.
I encountered an issue with the following Dockerfile:
I get:
The same happens when I reverse the images
however when I explicitly build an image with:
It works.
Do you have any idea what is going on? Thanks
The text was updated successfully, but these errors were encountered: