File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ docker run \
2121 --tty \
2222 --rm \
2323 --platform=" ${PLATFORM} " \
24- --name=" ${REPOSITORY_NAME,, } " \
25- --hostname=" ${REPOSITORY_NAME,, } " \
26- --mount= source=" ${VOLUMENAME} " ,target=/data \
27- --mount type=bind,source=" $( pwd) " /outputs,target=/data/outputs \
24+ --name=" ${REPOSITORY_NAME} " \
25+ --hostname=" ${REPOSITORY_NAME} " \
26+ --mount type=volume,volume-driver=local, source=" ${VOLUMENAME} " ,target=/data \
27+ --mount type=bind,source=" $( pwd) " /outputs/ ,target=/data/outputs/ \
2828 ${MODELSPATH: +--mount=" type=bind,source=${MODELSPATH} ,target=/data/models" } \
2929 ${HUGGING_FACE_HUB_TOKEN: +--env=" HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN} " } \
3030 --publish=9090:9090 \
3131 --cap-add=sys_nice \
3232 ${GPU_FLAGS: +--gpus=" ${GPU_FLAGS} " } \
3333 " ${CONTAINER_IMAGE} " ${@: +$@ }
3434
35- # Remove Trash folder
35+ echo -e " \nCleaning trash folder ... "
3636for f in outputs/.Trash* ; do
3737 if [ -e " $f " ]; then
3838 rm -Rf " $f "
You can’t perform that action at this time.
0 commit comments