How can I use BuildKit in freestyle project?

Jenkins setup:

Jenkins: 2.470
OS: Linux - 5.10.0-31-amd64
Java: 17.0.11 - Debian (OpenJDK 64-Bit Server VM)
docker-commons:439.va_3cb_0a_6a_fb_29
docker-java-api:3.3.6-90.ve7c5c7535ddd
docker-plugin:1.6.2
docker-workflow:580.vc0c340686b_54

Hi, I am trying to build a docker image in the freestyle project now. And I am not using built-in node, I am using Docker Agent jenkins/agent:latest-bookworm-jdk17 instead.

My question is I can’t use Docker BuildKit in my freestyle project, even I have set daemon.json and DOCKER_BUILDKIT=1 followed by this documentation.

Here is the Dockerfile I use