You must adjust the Docker Engine’s daemon settings, stored in the daemon.json, and restart the engine. As @Zeitounator suggests, you should be able to temporarily disable the buildkit with DOCKER_BUILDKIT=0 docker build .. Docker CLI will parse that environment variable and should honor it as that checking is done here in the docker/cli source code.
To adjust the Docker daemon’s buildkit settings, you can follow the instructions below.
From these docs. Partially on the command line, you can do that this way in Powershell:
- Open the file, on the command line the easiest way to do this is:
notepad "$env:USERPROFILE\.docker\daemon.json"
- Change the value of
"buildkit"tofalseso it looks like this:
{
"registry-mirrors": [],
"insecure-registries": [],
"debug": true,
"experimental": false,
"features": {
"buildkit": false
}
}
- Restart the Docker service:
Restart-Service *docker*
Alternatively, on Docker Desktop for Windows app:
Open the Dashboard > Settings:
Select Docker Engine and edit the json "features" field to read false if it’s not already:
