Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.69 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.69 KB

OWServer

Docker AB Docker Build Status Docker Pulls Docker Stars Docker Layers

This image includes an owserver and owhttpd installation for using OneWire/OWFS.

Usage

Default Config

Basic execution using USB OneWire device like DS9490R.

docker run -it --name owfs --device /dev/bus/usb -p 2122:2121 -d mneundorfer/owserver:latest

Docker-Compose

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

Custom OWFS Config

docker run -it --name owfs --device /dev/bus/usb -v `pwd`/owfs.conf:/etc/owfs.conf:ro -p 2122:2121 -d mneundorfer/owserver:latest

Enable FUSE Inside Container

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