Docker image for Network UPS Tools server.
This image provides a complete UPS monitoring service (USB driver only).
Start the container:
# docker run \
--name nut-upsd \
--detach \
--publish 3493:3493 \
--device /dev/bus/usb/xxx/yyy \
--env SHUTDOWN_CMD="my-shutdown-command-from-container" \
ghcr.io/anacozero/nut-upsd
This image supports customization via environment variables.
Default value: ups
The name of the UPS.
Default value: Eaton 5SC
This allows you to set a brief description that upsd will provide to clients that ask for a list of connected equipment.
Default value: usbhid-ups
This specifies which program will be monitoring this UPS.
Default vaue: auto
This is the serial port where the UPS is connected.
Default vaue: upsmon
This is the username used for communication between upsmon and upsd processes.
Default vaue: secret
This is the password for the upsmon user.
Default vaue: echo 'System shutdown not configured!'
This is the command upsmon will run when the system needs to be brought down. The command will be run from inside the container.