From 4032479e4126ad139a0ed121be6c899421ed0d77 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 7 Mar 2021 20:21:49 -0800 Subject: [PATCH] GCP sudo docker userdata.sh (#2393) * GCP sudo docker * cleanup --- utils/aws/userdata.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/aws/userdata.sh b/utils/aws/userdata.sh index a6d6e7976cf3..890606b76a06 100644 --- a/utils/aws/userdata.sh +++ b/utils/aws/userdata.sh @@ -16,12 +16,12 @@ if [ ! -d yolov5 ]; then else echo "Running re-start script." # resume interrupted runs i=0 - list=$(docker ps -qa) # container list i.e. $'one\ntwo\nthree\nfour' + list=$(sudo docker ps -qa) # container list i.e. $'one\ntwo\nthree\nfour' while IFS= read -r id; do ((i++)) echo "restarting container $i: $id" - docker start $id - # docker exec -it $id python train.py --resume # single-GPU - docker exec -d $id python utils/aws/resume.py + sudo docker start $id + # sudo docker exec -it $id python train.py --resume # single-GPU + sudo docker exec -d $id python utils/aws/resume.py # multi-scenario done <<<"$list" fi