mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
Fix security labelling policy.
This commit is contained in:
@@ -74,6 +74,8 @@ run_in_go_container() {
|
||||
docker run \
|
||||
`# docker options: remove container on exit, run as the host user / group` \
|
||||
--rm --user "$(id -u):$(id -g)" \
|
||||
`# disable SELinux relabelling /src` \
|
||||
--security-opt label=disable \
|
||||
`# golang caching: mount and use the cache volume` \
|
||||
-v "${CACHE_VOLUME}:/go" -e XDG_CACHE_HOME=/go/cache \
|
||||
`# mount the output & source dir, set working directory to the source dir` \
|
||||
|
||||
Reference in New Issue
Block a user