Skip to content

Unexpected behavior at .dockerignore file #30676

Description

@Alessar

Description

Behavior by documentation and behavior of docker is not the same.
https://docs.docker.com/engine/reference/builder/#/dockerignore-file
Documentation says that /foo/bar and foo/bar at .dockerignore file are the same.

Expected behavior

Expected that /node_modules and node_modules will be the same too.

Actual behavior

In case node_modules in .dockerignore file, looks like, all stuff in that directory are ignored correctly.
In case /node_modules docker try to push node_modules into container and sometimes get error:
WindowsError: [Error 3] The system cannot find the path specified: 'E:\Project\node_modules\very-very-long-path\filename'

And additionally, looks like, docker cannot work with long names - possible it is issue too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/builderBuildkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.platform/windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions