Skip to content

DL3026 is not detecting violations on COPY --from instructions #1054

Open
@phansys

Description

@phansys
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

Violation with this setup:

# Dockerfile

# ...

COPY --from=scratch /opt /opt
hadolint --trusted-registry my-company.com:500 Dockerfile

Actual behavior

No violations emitted.

Steps to reproduce the behavior

Output of hadolint --version or
docker run --rm hadolint/hadolint hadolint --version or
docker run --rm ghcr.io/hadolint/hadolint hadolint --version:

Haskell Dockerfile Linter 2.12.0

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