Skip to content

Simple Dockerfile does not work anymore #140

Closed
@waterkip

Description

@waterkip

I have a very small project that has a Dockerfile that starts like this:

FROM perl:latest
COPY . .

This does not work anymore due to

#6 [2/3] COPY . .
#6 ERROR: cannot copy to non-directory: /var/lib/docker/overlay2/y3net4vk3shghk747m0mxj34s/merged/lib
------
 > [2/3] COPY . .:
------
Dockerfile:3
--------------------
   1 |     FROM perl:latest
   2 |     #WORKDIR /tmp/foo
   3 | >>> COPY . .
   4 |     RUN cpanm .
   5 |
--------------------
ERROR: failed to solve: cannot copy to non-directory: /var/lib/docker/overlay2/y3net4vk3shghk747m0mxj34s/merged/lib

It doesn't work for 5.36/5.38, but it does work for 5.34

FROM perl:5.34 # works
COPY . .

Do you know if there were any changes on the hub that could cause this? I didn't notice it earlier.
The docker history command shows that the WORKDIR on all (inspected) images is /, which is the default for docker as I understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions