mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
more detailed volume parameters
This commit is contained in:
parent
49198a61ef
commit
ec1de5ae8b
@ -21,10 +21,10 @@ docker run \
|
|||||||
--tty \
|
--tty \
|
||||||
--rm \
|
--rm \
|
||||||
--platform="${PLATFORM}" \
|
--platform="${PLATFORM}" \
|
||||||
--name="${REPOSITORY_NAME,,}" \
|
--name="${REPOSITORY_NAME}" \
|
||||||
--hostname="${REPOSITORY_NAME,,}" \
|
--hostname="${REPOSITORY_NAME}" \
|
||||||
--mount=source="${VOLUMENAME}",target=/data \
|
--mount type=volume,volume-driver=local,source="${VOLUMENAME}",target=/data \
|
||||||
--mount type=bind,source="$(pwd)"/outputs,target=/data/outputs \
|
--mount type=bind,source="$(pwd)"/outputs/,target=/data/outputs/ \
|
||||||
${MODELSPATH:+--mount="type=bind,source=${MODELSPATH},target=/data/models"} \
|
${MODELSPATH:+--mount="type=bind,source=${MODELSPATH},target=/data/models"} \
|
||||||
${HUGGING_FACE_HUB_TOKEN:+--env="HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN}"} \
|
${HUGGING_FACE_HUB_TOKEN:+--env="HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN}"} \
|
||||||
--publish=9090:9090 \
|
--publish=9090:9090 \
|
||||||
@ -32,7 +32,7 @@ docker run \
|
|||||||
${GPU_FLAGS:+--gpus="${GPU_FLAGS}"} \
|
${GPU_FLAGS:+--gpus="${GPU_FLAGS}"} \
|
||||||
"${CONTAINER_IMAGE}" ${@:+$@}
|
"${CONTAINER_IMAGE}" ${@:+$@}
|
||||||
|
|
||||||
# Remove Trash folder
|
echo -e "\nCleaning trash folder ..."
|
||||||
for f in outputs/.Trash*; do
|
for f in outputs/.Trash*; do
|
||||||
if [ -e "$f" ]; then
|
if [ -e "$f" ]; then
|
||||||
rm -Rf "$f"
|
rm -Rf "$f"
|
||||||
|
Loading…
Reference in New Issue
Block a user