-
Notifications
You must be signed in to change notification settings - Fork 1
Notes on running inside Docker
mhupfauer edited this page May 13, 2021
·
3 revisions
Docker containers can not access the GPIO interfaces nor the I2C bus of their host system. Therefore the docker container has to be run with two special commands.
--device /dev/i2c-1
--device /dev/gpiomem
docker run -p 80:5000 --device /dev/i2c-1 --device /dev/gpiomem -v picure:latest
This will also expose the web service running at port 5000 inside the container on the host system's port 80 (default http port).
PiCure operates 230/120V main circuits. Do not attempt anything without proper training AND certification. Please make yourself familiar with local regulations and if required contact an electrician. This project can be a fire and safety hazard, may cause bodily harm, injuries and or death if improperly installed!
PROCEDE WITH THE UTMOST CAUTION
This does not alter the conditions of the projects license in any way, shape or form so please read them too.