forked from BrandonJoffe/home_surveillance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadme.elist
More file actions
64 lines (52 loc) · 1.76 KB
/
Readme.elist
File metadata and controls
64 lines (52 loc) · 1.76 KB
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
1. create network:
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet
should be inside subness of camera ip.
2. docker run -v /Users/estrajnik/dev/home_surveillance:/host -p 9000:9000 -p 8000:8000 -p 5000:5000 --net=dockernet -t -i bjoffe/openface_flask_v2 /bin/bash
http://192.168.33.21/videostream.cgi?user=admin&pwd=
on mac:
connect camera using ethernet
sudo /usr/libexec/bootpd -D -d -i en3 -v
scripts:
1. kill docker:
docker kill $(docker ps | awk '{print $1}' | tail -n 1)
2.go to docker container shell:
docker exec -i -t $(docker ps | awk '{print $1}' | tail -n 1) /bin/bash
3. dockernet network inspect:
[
{
"Name": "dockernet",
"Id": "8582101feb780a1dc60eaad711f119522b44344915f8f6fd3b0cdb6df66c763c",
"Created": "2018-01-21T09:23:52.58183432Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "192.168.0.0/24",
"Gateway": "192.168.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"743f80fd0aa5030a3d6a90a1ebf9cf40f4c5127f189c4a5182f2656b5c575fa6": {
"Name": "peaceful_ritchie",
"EndpointID": "5c00f1770e7f7bda7f793c2f48cd5c2b1acf711229ee55342c476a58fa1e5099",
"MacAddress": "02:42:c0:a8:00:02",
"IPv4Address": "192.168.0.2/24",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
]