Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 873
michi Avatar asked Sep 07 '25 13:09

michi


2 Answers

Did you maybe use Docker Desktop on Windows, uninstall it, and then tried to install Docker directly on WSL?

In that case you may have an issue that in /usr/local/lib/docker/cli-plugins/ you don't have actual files, but broken links to WSL installation. This happened to me.

To verify check output from: ls -la /usr/local/lib/docker/cli-plugins/

In my case, I rm these broken links, then rerun Docker installation on WSL and it solved the problem.

like image 84
Sebastian Bujak Avatar answered Sep 10 '25 13:09

Sebastian Bujak


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.

like image 30
hfurkanvural Avatar answered Sep 10 '25 13:09

hfurkanvural