-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid mount config for type "volume" #749
Comments
+1 ❯ docker --version
Docker version 20.10.8, build 3967b7d
❯ docker buildx inspect --bootstrap
[+] Building 0.0s (1/1) FINISHED
=> ERROR [internal] booting buildkit 3.3s
=> => pulling image moby/buildkit:buildx-stable-1 3.3s
=> => creating container buildx_buildkit_mybuilder0 0.0s
------
> [internal] booting buildkit:
------
Name: mybuilder
Driver: docker-container
Nodes:
Name: mybuilder0
Endpoint: npipe:////./pipe/docker_engine
Error: Error response from daemon: invalid mount config for type "volume": invalid mount path: 'C:/ProgramData/buildkitd/.buildstate' mount path must be absolute From Ubuntu WSL2 ❯ uname -a
Linux DESKTOP-HS5PI9S 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
❯ docker --version
Docker version 20.10.8, build 3967b7d
❯ docker buildx inspect --bootstrap
[+] Building 4.5s (1/1) FINISHED
=> [internal] booting buildkit 4.4s
=> => pulling image moby/buildkit:buildx-stable-1 3.7s
=> => creating container buildx_buildkit_wslbuildr0 0.7s
Name: wslbuildr
Driver: docker-container
Nodes:
Name: wslbuildr0
Endpoint: unix:///var/run/docker.sock
Status: running
Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6 |
I can only confirm and also checked that then folder |
@thaJeztah maybe you know why it would behave like this in windows client and what is the correct mount config in this cases. There are no bind mounts so there should never be any windows paths anywhere. |
Ah, yes, I think I see what's happening. Buildx uses a volume to store the cache for the "container" driver. For that, I see it's using some BuildKit defaults; buildx/driver/docker-container/driver.go Lines 110 to 116 in a8a3b17
Those paths are platform-specific, i.e., buildx/vendor/github.com/moby/buildkit/util/appdefaults/appdefaults_windows.go Lines 12 to 15 in a8a3b17
But buildx is running on the client and the I think the correct thing to do would be to;
Or to use separate variables for Linux and Windows |
@crazy-max ^^ probably introduced in #672 |
I also notice that Windows uses a Ironically the Windows default is using a dot ( |
I guess this would not work, because on Windows, the path depends on the |
Let me open a quick PR |
I get an error below when creating container. I am new to docker. Do you have any ideas to solve the error?
Docker :
OS :
Windows 10 Home
The text was updated successfully, but these errors were encountered: