Skip to content

Docker run command forces UPS to move to different device path #2

@jm20122012

Description

@jm20122012

Just downloaded the docker container on CentOS 8. When I plug in my UPS, it gets assigned to "/dev/bus/usb/00x/00x". When I use the docker run command I use:

docker run --name tripplite --detach --publish 3943:3943 --device /dev/bus/usb/00x/00x -e UPS_NAME="Tripplite" -e UPS_DRIVER=usbhid-ups -e UPS_DESC=Tripplite -e API_USER="upsmon" -e API_PASSWORD="xxxxx" upshift/nut-upsd

If the device path was originally "/dev/bus/usb/002/001" it will get reassigned to "/dev/bus/usb/002/002" after starting the docker container, which results in never ending "Poll UPS [Tripplite@localhost] failed - Data stale" messages in the log. I'm assuming because the UPS has moved to a new device path as a result of the run command forcing it to move.

Not sure what to do to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions