Skip to content

Commit

Permalink
Update Usage examples (ultralytics#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Jun 26, 2021
1 parent 5af5595 commit 51f12d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@ COPY . /usr/src/app
ENV HOME=/usr/src/app


# --------------------------------------------------- Extras Below ---------------------------------------------------
# Usage Examples -------------------------------------------------------------------------------------------------------

# Build and Push
# t=ultralytics/yolov5:latest && sudo docker build -t $t . && sudo docker push $t
# for v in {300..303}; do t=ultralytics/coco:v$v && sudo docker build -t $t . && sudo docker push $t; done

# Pull and Run
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all $t

# Pull and Run with local directory access
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all -v "$(pwd)"/coco:/usr/src/coco $t
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all -v "$(pwd)"/datasets:/usr/src/datasets $t

# Kill all
# sudo docker kill $(sudo docker ps -q)
Expand Down

0 comments on commit 51f12d1

Please sign in to comment.