Yes, buildkit is the default builder, but you can still use the buildx plugin as before. If you want to use the build subcommand only, you can see the supported parameters in the help:
docker build --help
The only difference between docker build and docker buildx build is that docker build mentions docker desktop in the description of a parameter, the other doesn’t
Of course buildx has other subcommands, not just build so you still need to use buildx for those.
The legacy builder does not have a --progress option and buildkit has different output, it shows the running commands only and the commands disappear after that except when they fail.
But it is enough to check the help as I suggested in my previous post and the new help with start with this:
Usage: docker buildx build [OPTIONS] PATH | URL | -
Start a build
Aliases:
docker buildx build, docker buildx b
And it tells you that docker build is an alias to docker buildx build
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
The only thing i am unable to figure it out is after removing “docker-buildx-plugin”
kvswp@Testubuntu:/home/vkota/test# sudo apt-get remove docker-buildx-plugin
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages will be REMOVED:
docker-buildx-plugin
0 upgraded, 0 newly installed, 1 to remove and 21 not upgraded.
After this operation, 77.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 236104 files and directories currently installed.)
Removing docker-buildx-plugin (0.11.2-1~ubuntu.22.04~jammy) …