On my windows 11 home system, running docker desktop v4.15.0, engine 20.10.21, I can run >docker buildx ls
to get the expected platforms output (following the docs: https://docs.docker.com/engine/reference/commandline/buildx_ls/):
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
default * docker
default default running 20.10.21 linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
desktop-linux docker
desktop-linux desktop-linux running 20.10.21 linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
But continuing with the docs (https://docs.docker.com/engine/reference/commandline/buildx_create/), when running docker buildx create --name mybuilder mybuilder
, I get the following:
ERROR: failed to initialize builder mybuilder (mybuilder0): error during connect: Get "http://mybuilder:2375/v1.24/info": dial tcp: lookup mybuilder: no such host
Following this post https://github.com/docker/buildx/issues/174, I have uninstalled/deleted docker files with no success. I saw mention of the hypervisor settings, but I'm running home edition. I have also ran wsl --update
. I'm able to create images and run containers without any issues.
What configuration could I be missing to properly create the builder?