If you enabled BuildKit globally in daemon.json config, you'll need to restart the docker daemon (systemctl restart docker
). If you're enabling it for a one-off build, you'll need to run the build like this:
DOCKER_BUILDKIT=1 docker build -t lemmy:latest .
I had to update some build scripts for a few other projects, and that worked.