dockerwindows-subsystem-for-linuxbuildx

docker Buildx "ERROR: BuildKit is enabled but the buildx component is missing or broken" error


When I try to do a Docker Build using Docker as usual, I get the error message in the image and cannot Build. What should I do in this case? By the way, Docker's version is 23.0.1. enter image description here enter image description here enter image description here

When I uninstall docker buildx and then Build, I get other warning errors and the Build itself works, but parallel processing cannot be performed. My ideal would be to use Buildx to do a parallel Build.


Solution

  • I also had a similar issue with version 23.0.2. For me it was missing buildx package. Following command solved the issue.

    apt-get install docker-buildx-plugin

    Message and docs of docker on linux are a bit vague unfortunately. I found out the missing package while I was planning to install docker from scratch.