容器是用命令創建的
docker run --gpus '"'device=$CUDA_VISIBLE_DEVICES'"' --ipc=host --rm -it \
--mount src=$(pwd),dst=/clipbert,type=bind \
--mount src=$OUTPUT,dst=/storage,type=bind \
--mount src=$PRETRAIN_DIR,dst=/pretrain,type=bind,readonly \
--mount src=$TXT_DB,dst=/txt,type=bind,readonly \
--mount src=$IMG_DIR,dst=/img,type=bind,readonly \
-e NVIDIA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES \
-w /clipbert jayleicn/clipbert:latest \
bash -c "source /clipbert/setup.sh && bash" \
但是在 exit 和 running 時docker ps -a,未列出該容器,并且該容器似乎只是臨時創建的。這在我之前使用docker的經驗中沒有發生過,可能是什么原因?
uj5u.com熱心網友回復:
該--rm選項告訴搬運工運行命令時,它會自動退出洗掉容器。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/393540.html
上一篇:一研為定
