mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-18 11:57:32 +00:00
Merge pull request #15479 from dcermak/don-t-use-privileged-containers
Makefile: Mount . with --security-opt label=disable instead of using --privileged
This commit is contained in:
commit
4cff780322
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue