This image includes an owserver
and owhttpd
installation for using OneWire/OWFS.
Basic execution using USB OneWire device like DS9490R.
docker run -it --name owfs --device /dev/bus/usb -p 2122:2121 -d mneundorfer/owserver:latest
Build on your own container and run as docker-compose service. Config could be changed to use e.g. I2C devices.
git clone https://github.com/mneundorfer/owserver
cd owserver
docker-compose up
docker run -it --name owfs --device /dev/bus/usb -v `pwd`/owfs.conf:/etc/owfs.conf:ro -p 2122:2121 -d mneundorfer/owserver:latest
Mounting the sensors via owfs -m
requires appropriate privileges, adding --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined
should do the trick. But be aware of the security implications (see https://stackoverflow.com/a/49021109/1110628)!
docker run -it --name owfs --device /dev/bus/usb --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -p 2122:2121 -d mneundorfer/owserver:latest