Skip to content

issue when including image "cannot copy to non-directory" #1

Description

@kretes

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:

#syntax=bergkvist/includeimage

FROM jupyter/datascience-notebook

INCLUDE openjdk:11.0.7-jre-buster

I get:

> DOCKER_BUILDKIT=1 docker build -t included1 .

failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: cannot copy to non-directory: /var/lib/docker/overlay2/wll16e5y1622ez736xegsf987/merged/bin

The same happens when I reverse the images

however when I explicitly build an image with:

FROM jupyter/datascience-notebook

COPY --from=openjdk:11.0.7-jre-buster / /

It works.

Do you have any idea what is going on? Thanks

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions