Question Passing ups via usb to docker container

Currently reading
Question Passing ups via usb to docker container

9
1
NAS
DS918+
My Eaton UPS 5PX works with their own software (IPP) that they offer a linux .deb version for.

Yes I can use NUT, but there are a few variables like battery voltage, that for some reason are not exposed with NUT.

So I've tried to run their IPP in a docker container (there are a few version floating around on Docker hub), but I can't get the container to see the USB device

I've tried --privilged, I've tried -v /dev/bus/usb:/dev/bus/usb

but the software can't see the UPS.

When I load a windows VM on my Mac and attach the USB port to the VM, it sees the UPS

I'm not sure if having syno's NUT server running would somehow bind the USB port and stop me attaching it to the container ?
 
If DSM grabs USB UPS devices for its own management then somehow the device needs to be released and then attached to the Docker container. I haven't a solution but it's the reason I've shied away from moving my Weewx server from Rasp-Pi to Docker on the NAS ... my weather station's data feed is via USB connection.

Likewise I've also been able to use VirtualBox to run apcuspd (APC UPS monitor/config) on my Mac and have attached the USB to the VM.
 
If DSM grabs USB UPS devices for its own management then somehow the device needs to be released and then attached to the Docker contain
Thanks

I tried killing upsmon and upsd but it made no difference (other than DSM not recognizing the usb as attached). The only other process I can see related is the ups-hid driver, but I assume it would need this to work via usb at all
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Thank you for this - I'll give it a go and see where I get - worst case I learn something as I go!
Replies
6
Views
1,482
For starters, I would try this... devices: - /dev/dri:/dev/dri If the left path matches your NAS...
Replies
12
Views
5,292
I can not install downloaded files for additional functionality in odoo In the docker I have got the...
Replies
0
Views
2,173
Same here This worked for me: Task script: #!/bin/bash cd /volume1/docker/[directory where...
Replies
10
Views
5,768
  • Solved
I've changed the thread type. Now you can Mark as solution by clicking on this: Thank you.
Replies
6
Views
4,206
I was indeed missing the tun module. The container now works after installing per your instructions -...
Replies
5
Views
4,327
Hi All, I have been struggling since December to get a docker install of FreePBX or Asterisk to work on...
Replies
0
Views
3,597

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top