Proxmox PVE + Docker + APCUPS

I’m running Proxmox VE and on an Ubuntu VM I run HA in a docker container. I have my APC UPS connected to the Proxmox host machine (and installed apcupsd there). I have configured the apcups component to point to the NIS PORT on the Proxmox host.

Ha logging says: Unable to prepare setup for platform sensor.apcupsd: Could not setup all dependencies.

How would I set this up ?