Support for BuildKit was just released in docker-compose 1.25.0. To enable:
export DOCKER_BUILDKIT=1 # or configure in daemon.json
export COMPOSE_DOCKER_CLI_BUILD=1
With those variables set in your shell, you can now run docker-compose build
using BuildKit.
In windows you can execute in your console:
setx DOCKER_BUILDKIT 1 # or configure in daemon.json
setx COMPOSE_DOCKER_CLI_BUILD 1
after will need restart your console
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…