Skip to content

Commit d7d6445

Browse files
authored
[Build] disable DOCKER_BUILDKIT explicitly (#14405)
Why I did it Fix #14081 By default DOCKER_BUILDKIT is enabled after docker version 23.0.0 So we need to disable it explicitly if SONIC_USE_DOCKER_BUILDKIT is not set. Otherwise it will produce larger installable images. How I did it set DOCKER_BUILDKIT=0 in slave.mk How to verify it
1 parent 3d32008 commit d7d6445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

slave.mk

+2
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ include Makefile.cache
454454
ifeq ($(SONIC_USE_DOCKER_BUILDKIT),y)
455455
$(warning "Using SONIC_USE_DOCKER_BUILDKIT will produce larger installable SONiC image because of a docker bug (more details: https://github.com/moby/moby/issues/38903)")
456456
export DOCKER_BUILDKIT=1
457+
else
458+
export DOCKER_BUILDKIT=0
457459
endif
458460

459461

0 commit comments

Comments
 (0)