We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3107639 commit 212f7c7Copy full SHA for 212f7c7
Makefile
@@ -25,6 +25,8 @@ ifneq (, $(shell which docker 2>/dev/null))
25
DOCKER := docker
26
else ifneq (, $(shell which podman 2>/dev/null))
27
DOCKER := podman
28
+ # map host uid to container uid
29
+ export PODMAN_USERNS=keep-id
30
else
31
$(error Neither docker nor podman found)
32
endif
@@ -214,6 +216,7 @@ shell: build-dirs build-env
214
216
-e GOPROXY \
215
217
-i $(TTY) \
218
--rm \
219
+ -u $$(id -u):$$(id -g) \
220
-v "$$(pwd):/github.com/vmware-tanzu/velero:delegated" \
221
-v "$$(pwd)/_output/bin:/output:delegated" \
222
-v "$$(pwd)/.go/pkg:/go/pkg:delegated" \
0 commit comments