From 6fd450c9047d495552e6e57bd1d30c49fd17d71f Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 7 Dec 2019 15:06:38 -0800 Subject: [PATCH] updates --- Dockerfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84893a50..f53dc692 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,23 +43,15 @@ COPY . /usr/src/app # --------------------------------------------------- Extras Below --------------------------------------------------- -# Build -# rm -rf yolov3 # Warning: remove existing -# git clone https://github.com/ultralytics/yolov3 && cd yolov3 && python3 detect.py -# sudo docker image prune -af && sudo docker build -t ultralytics/yolov3:v0 . +# Build and Push +# export t=ultralytics/yolov3:v0 && sudo docker build -t $t . && sudo docker push $t # Run # sudo nvidia-docker run --ipc=host ultralytics/yolov3:v0 python3 detect.py -# Run with local directory access -# sudo nvidia-docker run --ipc=host -it -v "$(pwd)"/coco:/usr/src/coco ultralytics/yolov3:v0 - # Pull and Run with local directory access # export t=ultralytics/yolov3:v0 && sudo docker pull $t && sudo nvidia-docker run -it --ipc=host -v "$(pwd)"/coco:/usr/src/coco $t -# Build and Push -# export t=ultralytics/yolov3:v112 && sudo docker build -t $t . && sudo docker push $t - # Kill all # sudo docker kill "$(sudo docker ps -q)"