Skip to content

Commit

Permalink
[Build] disable DOCKER_BUILDKIT explicitly (sonic-net#14405)
Browse files Browse the repository at this point in the history
Why I did it
Fix sonic-net#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
  • Loading branch information
k-v1 authored Apr 11, 2023
1 parent 3d32008 commit d7d6445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ include Makefile.cache
ifeq ($(SONIC_USE_DOCKER_BUILDKIT),y)
$(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)")
export DOCKER_BUILDKIT=1
else
export DOCKER_BUILDKIT=0
endif


Expand Down

0 comments on commit d7d6445

Please sign in to comment.