Skip to content

Commit 6e991a5

Browse files
fix (#19445)
Why I did it DEFAULT_CONTAINER_REGISTRY didn't work as expected in some scenario. How I did it When check for docker arch, use DEFAULT_CONTAINER_REGISTRY if it is not null.
1 parent ec0d1b0 commit 6e991a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile.work

+4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ SHELL = /bin/bash
6868
USER := $(shell id -un)
6969
PWD := $(shell pwd)
7070
USER_LC := $(shell echo $(USER) | tr A-Z a-z)
71+
ifneq ($(DEFAULT_CONTAINER_REGISTRY),)
72+
DOCKER_MACHINE := $(shell docker run --rm $(DEFAULT_CONTAINER_REGISTRY)/debian:buster uname -m)
73+
else
7174
DOCKER_MACHINE := $(shell docker run --rm debian:buster uname -m)
75+
endif
7276
HOST_DOCKERD_GID := $(shell getent group docker | cut -d : -f3)
7377

7478
comma := ,

0 commit comments

Comments
 (0)