Open mlalpho opened 5 months ago
Thanks for reporting!
This is a known issue. Atm Docker Desktop runs backend services on the host machine, and for Windows users it means that Docker config on WSL is not taken into account. For the Builds view this is problematic as a user might not want to invoke build commands on Windows but WSL and therefore created builders will not be shown (Buildx configuration is stored in ~/.docker/buildx
).
cc @colinhemmings
As a workaround what you can do is creating the builder on WSL2:
$ docker buildx create --name mybuilder
And create another one with Powershell/CMD on Windows host with the same name:
> docker buildx create --name mybuilder
This way the backend service will monitor the container builder within the Buildx store on Windows host that would match the one used on WSL.
Description
I was checking out the new feature: Explore Builds
Builds/builders created/running inside the WSL distro are not showing in Docker Desktop.
I'm running Docker Desktop for Windows with WSL2 integration -- Docker Desktop 4.30.0 (149282)
Please let me know if you need any more info/testing.
Thank You!
Reproduce
In CMD:
docker buildx create --name container-builder-local --driver-opt=image=moby/buildkit:latest
docker buildx bake --builder=container-builder-local docker-compose.yml
Builder/Builds show when invoked from CMD ☝️
In WSL2:
docker buildx create --name container-builder-wsl --driver-opt=image=moby/buildkit:latest
docker buildx bake --builder=container-builder-wsl docker-compose.yml
Expected behavior
Builder and build history/active builds should be visible whether building on local windows command line or WSL2 distro
docker version
docker info
Diagnostics ID
CBFB97CF-F6D1-45CF-A376-94B689AA7FF2/20240604170237
Additional Info