docker-first-application-example icon indicating copy to clipboard operation
docker-first-application-example copied to clipboard

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

Open guynich opened this issue 9 months ago • 1 comments

Well written tutorial that references this repo - thanks!

I tested the tutorial steps on Ubuntu 22.04 on ARM and see this issue when running the build.

$ docker build -t python-test .
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/

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=python-test&target=&ulimits=%5B%5D&version=1": dial unix /var/run/docker.sock: connect: permission denied
$ 

I'm not sure if this is related to my use of ARM but see there are other references for using buildx such as this link.

guynich avatar Mar 09 '25 07:03 guynich

The docker.io install used in the tutorial is not an "official package" according to this link. https://docs.docker.com/engine/install/ubuntu/#uninstall-old-versions

guynich avatar Mar 12 '25 21:03 guynich