i am unable to build a Dockerfile i am getting an error statiing that (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/
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/ubuntu/Dockerfile: no such file or directory)
can any one please guide me on this
i have tried to install buildx (apt buildx install) no luck
If docker is complaining about the legacy builder it means that you haven't created or bootstrapped a custom builder using the
docker buildx create
command. This is a prerequisite step before using buildx to create architecture specific and multi-arch images.Ex:
Here is the official docker documentation on the issue.