Unverified Commit 65a37708 authored by jh-nv's avatar jh-nv Committed by GitHub
Browse files

chore: do not default to privileged mode when mounting workspace. (#5644)

parent aecf0051
...@@ -264,10 +264,6 @@ get_options() { ...@@ -264,10 +264,6 @@ get_options() {
HF_HOME=$DEFAULT_HF_HOME HF_HOME=$DEFAULT_HF_HOME
fi fi
if [ -z "${PRIVILEGED}" ]; then
PRIVILEGED="TRUE"
fi
ENVIRONMENT_VARIABLES+=" -e HF_TOKEN" ENVIRONMENT_VARIABLES+=" -e HF_TOKEN"
fi fi
...@@ -348,7 +344,7 @@ show_help() { ...@@ -348,7 +344,7 @@ show_help() {
echo " [--image image]" echo " [--image image]"
echo " [--framework framework one of ${!FRAMEWORKS[*]}]" echo " [--framework framework one of ${!FRAMEWORKS[*]}]"
echo " [--name name for launched container, default NONE]" echo " [--name name for launched container, default NONE]"
echo " [--privileged whether to launch in privileged mode, default FALSE unless mounting workspace]" echo " [--privileged whether to launch in privileged mode, default FALSE]"
echo " [--dry-run print docker commands without running]" echo " [--dry-run print docker commands without running]"
echo " [--hf-home|--hf-cache directory to volume mount as the hf home, default is NONE unless mounting workspace]" echo " [--hf-home|--hf-cache directory to volume mount as the hf home, default is NONE unless mounting workspace]"
echo " [--gpus gpus to enable, default is 'all', 'none' disables gpu support]" echo " [--gpus gpus to enable, default is 'all', 'none' disables gpu support]"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment