Commit
•
07166ba
1
Parent(s):
92d49fd
Update Usage examples (#3790)
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -22,17 +22,16 @@ COPY . /usr/src/app
|
|
22 |
ENV HOME=/usr/src/app
|
23 |
|
24 |
|
25 |
-
#
|
26 |
|
27 |
# Build and Push
|
28 |
# t=ultralytics/yolov5:latest && sudo docker build -t $t . && sudo docker push $t
|
29 |
-
# for v in {300..303}; do t=ultralytics/coco:v$v && sudo docker build -t $t . && sudo docker push $t; done
|
30 |
|
31 |
# Pull and Run
|
32 |
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all $t
|
33 |
|
34 |
# Pull and Run with local directory access
|
35 |
-
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all -v "$(pwd)"/
|
36 |
|
37 |
# Kill all
|
38 |
# sudo docker kill $(sudo docker ps -q)
|
|
|
22 |
ENV HOME=/usr/src/app
|
23 |
|
24 |
|
25 |
+
# Usage Examples -------------------------------------------------------------------------------------------------------
|
26 |
|
27 |
# Build and Push
|
28 |
# t=ultralytics/yolov5:latest && sudo docker build -t $t . && sudo docker push $t
|
|
|
29 |
|
30 |
# Pull and Run
|
31 |
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all $t
|
32 |
|
33 |
# Pull and Run with local directory access
|
34 |
+
# t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all -v "$(pwd)"/datasets:/usr/src/datasets $t
|
35 |
|
36 |
# Kill all
|
37 |
# sudo docker kill $(sudo docker ps -q)
|