Dockerfile COPY instruction doesn't adhere to parser directive "escape" #47776
Labels
area/builder/classic-builder
Issues affecting the classic builder
area/builder
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
platform/windows
status/0-triage
version/26.0
Description
According to Dockerfile reference documentation on
escape
parser directive:However, this doesn't work.
According to Go's
filepath.Match()
documentation:So, escaping is also not performed in a
COPY
command.Reproduce
Dockerfile
Expected behavior
The above Dockerfile build should flawlessly copy the whole context to the Windows container's
C:\Temp\
directory.Actual behavior
The
COPY
instruction fails.docker version
Client: Cloud integration: v1.0.35+desktop.13 Version: 26.0.0 API version: 1.45 Go version: go1.21.8 Git commit: 2ae903e Built: Wed Mar 20 15:18:56 2024 OS/Arch: windows/amd64 Context: default Server: Docker Desktop 4.29.0 (145265) Engine: Version: 26.0.0 API version: 1.45 (minimum version 1.24) Go version: go1.21.8 Git commit: 8b79278 Built: Wed Mar 20 15:17:49 2024 OS/Arch: windows/amd64 Experimental: false
docker info
The text was updated successfully, but these errors were encountered: