DEPRECATED: The legacy builder is deprecated and will be removed in a future release.

Photo by Ian Taylor on Unsplash

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.

Linux/docker

  • outline

docker build xxx
\>> While using docker build command, sometimes an error occurs.

  • error message

failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-buildx: no such file or directory DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/

  • resolution

install docker-buildx-plugin docker build ...
\>> docker buildx build ...