We have an example container doing this via dbus. Take a look here
There is one drawback to this approach though. If the container exits when the lid is closed, the laptop will go into hibernation. So make sure it is open when doing updates or shutting it down from the dashboard.