mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
Fix: Add privileged for prepare command (#12689)
Mount `/` dir in container require privilege And this change will make `z` label useless. So remove them Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
78d4b54ddc
commit
85fa6654ec
11
make/prepare
11
make/prepare
@ -51,11 +51,12 @@ secret_dir=${data_path}/secret
|
||||
config_dir=$harbor_prepare_path/common/config
|
||||
|
||||
# Run prepare script
|
||||
docker run --rm -v $input_dir:/input:z \
|
||||
-v $data_path:/data:z \
|
||||
-v $harbor_prepare_path:/compose_location:z \
|
||||
-v $config_dir:/config:z \
|
||||
-v /:/hostfs:z \
|
||||
docker run --rm -v $input_dir:/input \
|
||||
-v $data_path:/data \
|
||||
-v $harbor_prepare_path:/compose_location \
|
||||
-v $config_dir:/config \
|
||||
-v /:/hostfs \
|
||||
--privileged \
|
||||
goharbor/prepare:dev prepare $@
|
||||
|
||||
echo "Clean up the input dir"
|
||||
|
Loading…
Reference in New Issue
Block a user