Skip to content

Commit ec1de5a

Browse files
committed
more detailed volume parameters
1 parent 49198a6 commit ec1de5a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docker/run.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 ..."
3636
for f in outputs/.Trash*; do
3737
if [ -e "$f" ]; then
3838
rm -Rf "$f"

0 commit comments

Comments
 (0)