-
-
Notifications
You must be signed in to change notification settings - Fork 232
BerryNet on Docker
Ying-Chun Liu (PaulLiu) edited this page Jun 18, 2019
·
11 revisions
IMPORTANT: This page is being updated and the content might not be 100% correct.
This page describe how to run BerryNet inside the Docker. The host os is currently on Debian or Ubuntu.
docker build -t berrynet-stretch ./docker
Because BerryNet contains several services which needs systemd to load and run. Thus we start with /sbin/init. Also we need to allow to use USB camera inside.
docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /dev/bus/usb:/dev/bus/usb --device /dev/video0:/dev/video0 berrynet-stretch /sbin/init
docker exec -i -t <instance ID> /bin/bash
You need to figure out the IP address of the docker and then use it.
-
Change the IP address inside the config file from localhost to 172.x.x.x
-
Now we can use the browser to access the dashboard outside of the docker through 172.x.x.x IP address.