-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun CMD
72 lines (55 loc) · 1.98 KB
/
run CMD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
docker run -it \
--restart unless-stopped \
--mount type=bind,source=/sys/class/net/eth0,destination=/sys/class/net/eth0 \
--mount type=bind,source=/home/pi/MAPS6_Minimum_Viable_Product/data,destination=/home/MAPS6_Minimum_Viable_Product \
--privileged \
sean3381212/maps6-mvp
[for MAPS6_MVP]
docker run -itd --restart unless-stopped \
--net=host \
--name maps6_mvp \
--mount type=bind,source=/home/pi/MAPS6_Minimum_Viable_Product/data,destination=/home/MAPS6_MVP/data \
--privileged \
sean3381212/maps6-mvp:latest
docker run -it --restart unless-stopped \
--net=host \
--name maps6_mvp \
--mount type=bind,source=/home/pi/MAPS6_Minimum_Viable_Product/data,destination=/home/MAPS6_MVP/data \
--mount type=bind,source=/dev,destination=/dev \
--privileged \
sean3381212/maps6-mvp:latest
docker run -itd --restart unless-stopped \
--net=host \
--name maps6_mvp \
--mount type=bind,source=/home/pi/MAPS6_Minimum_Viable_Product/data,destination=/home/MAPS6_MVP/data \
--mount type=bind,source=/dev,destination=/dev \
--privileged \
sean3381212/maps6-mvp:latest
----------------------------------------------------------------------------------------------
[for watchtower]
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--cleanup
#maps6_mvp
[use this]
docker run -d \
--name watchtower \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--cleanup
----------------------------------------------------------------------------------------------
docker cli command
docker container stop maps6_mvp
docker container rm maps6_mvp
docker run -itd --restart unless-stopped \
--net=host \
--name maps6_mvp \
--mount type=bind,source=/home/pi/MAPS6_Minimum_Viable_Product/data,destination=/home/MAPS6_MVP/data \
--mount type=bind,source=/dev,destination=/dev \
--privileged \
sean3381212/maps6-mvp:latest
docker build -t sean3381212/maps6-mvp .
docker push sean3381212/maps6-mvp