glenn-jocher commited on
Commit
e8a2b83
1 Parent(s): 7c2c957

GCP sudo docker userdata.sh (#2393)

Browse files

* GCP sudo docker

* cleanup

Files changed (1) hide show
  1. utils/aws/userdata.sh +4 -4
utils/aws/userdata.sh CHANGED
@@ -16,12 +16,12 @@ if [ ! -d yolov5 ]; then
16
  else
17
  echo "Running re-start script." # resume interrupted runs
18
  i=0
19
- list=$(docker ps -qa) # container list i.e. $'one\ntwo\nthree\nfour'
20
  while IFS= read -r id; do
21
  ((i++))
22
  echo "restarting container $i: $id"
23
- docker start $id
24
- # docker exec -it $id python train.py --resume # single-GPU
25
- docker exec -d $id python utils/aws/resume.py
26
  done <<<"$list"
27
  fi
 
16
  else
17
  echo "Running re-start script." # resume interrupted runs
18
  i=0
19
+ list=$(sudo docker ps -qa) # container list i.e. $'one\ntwo\nthree\nfour'
20
  while IFS= read -r id; do
21
  ((i++))
22
  echo "restarting container $i: $id"
23
+ sudo docker start $id
24
+ # sudo docker exec -it $id python train.py --resume # single-GPU
25
+ sudo docker exec -d $id python utils/aws/resume.py # multi-scenario
26
  done <<<"$list"
27
  fi