Skip to content

Commit

Permalink
Merge pull request #15479 from dcermak/don-t-use-privileged-containers
Browse files Browse the repository at this point in the history
Makefile: Mount . with --security-opt label=disable instead of using --privileged
  • Loading branch information
openshift-merge-robot authored Aug 31, 2022
2 parents 6bda96a + dcb4d43 commit 4cff780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ vendor:

.PHONY: vendor-in-container
vendor-in-container:
podman run --privileged --rm --env HOME=/root \
podman run --rm --env HOME=/root \
-v $(CURDIR):/src -w /src \
--security-opt label=disable \
docker.io/library/golang:1.17 \
make vendor

Expand Down

0 comments on commit 4cff780

Please sign in to comment.