Skip to content

Commit

Permalink
[bookworm] Fix docker gid mismatch with host (#17158)
Browse files Browse the repository at this point in the history
* [bookworm] Fix docker gid mismatch with host
* Use group-add arg instead of update sonic-slave user

Signed-off-by: Vivek Reddy <[email protected]>
  • Loading branch information
vivekrnv authored and yxieca committed Nov 22, 2023
1 parent a4cfe25 commit bd3572e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ USER := $(shell id -un)
PWD := $(shell pwd)
USER_LC := $(shell echo $(USER) | tr A-Z a-z)
DOCKER_MACHINE := $(shell docker run --rm debian:buster uname -m)
HOST_DOCKERD_GID := $(shell getent group docker | cut -d : -f3)

comma := ,

Expand Down Expand Up @@ -389,7 +390,7 @@ endif

ifeq ($(SONIC_CONFIG_USE_NATIVE_DOCKERD_FOR_BUILD), y)
ifneq ($(MULTIARCH_QEMU_ENVIRON), y)
DOCKER_RUN += -v /var/run/docker.sock:/var/run/docker.sock
DOCKER_RUN += -v /var/run/docker.sock:/var/run/docker.sock --group-add $(HOST_DOCKERD_GID)
endif
endif

Expand Down

0 comments on commit bd3572e

Please sign in to comment.