Skip to content

COPY --exclude no longer working since version 20.18.7 #478

@fairbuj-cardiff

Description

@fairbuj-cardiff

After updating to the latest image the --exclude flag is no longer recognised when trying to build and deploy from our ECR

I experienced the same issue trying to build the image locally with 'docker build -t tag name -f filename.Dockerfile . '

Sending build context to Docker daemon 295.3MB
Error response from daemon: dockerfile parse error on line 49: unknown flag: --exclude

When I switched to using 'docker buildx build -t tag name -f filename.Dockerfile . ' locally the same Dockerfile built successfully.

We've pinned the version to 20.18.6 for now, but obviously this is not a long term fix

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