Closed s2marine closed 1 year ago
HI, have you found a solution to this issue?
This looks like a duplicate of https://github.com/moby/buildkit/issues/3927, which was fixed by https://github.com/moby/buildkit/pull/3946 (which is part of https://github.com/moby/buildkit/releases/tag/v0.12.0).
Upgrading to the latest buildx v0.11.2 should contain the fix (also ensure that if you're running buildkit manually (e.g. in kubernetes), that it is also updated to buildkit v0.12).
I think this is still an issue in some cases.
I ran into this error when I was passing a parameter to docker build -f $example
where example
contained a newline at the end... I think this error message should be improved as well - to indicate it's the parameter as opposed to files.
This also happened after upgrading to the latest docker.
devops_staging@staging:~$ my_variable=$'example\n'
devops_staging@staging:~$ docker build -f "$my_variable"
docker buildx version
github.com/docker/buildx v0.13.1 7884339
sudo docker version
Client: Docker Engine - Community
Version: 26.0.1
API version: 1.45
Go version: go1.21.9
Git commit: d260a54
Built: Thu Apr 11 10:53:52 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.0.1
API version: 1.45 (minimum version 1.24)
Go version: go1.21.9
Git commit: 60b9add
Built: Thu Apr 11 10:53:52 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Contributing guidelines
I've found a bug and checked that ...
Description
Buildx can't handle non-ASCII directory name when using ADD/COPY.
Expected behaviour
build should success.
Actual behaviour
ERROR: failed to solve: Internal: header key "followpaths" contains value with non-printable ASCII characters
Buildx version
github.com/docker/buildx 0.10.3 79e156beb11f697f06ac67fa1fb958e4762c0fab
Docker info
Builders list
Configuration
Logs
Additional info
No response