systemd-machined offers a D-Bus API for container run-time to register their containers. systemd-nspawn and rkt uses it so containers can be listed with:
$ machinectl
MACHINE CLASS SERVICE
rkt-fe3f9340-30cb-4882-b6c5-862cc8742e46 container nspawn
1 machines listed.
$ machinectl status rkt-fe3f9340-30cb-4882-b6c5-862cc8742e46 | grep Leader
Leader: 22027 (systemd)
Weave Scope could use systemd-machined's D-Bus API to gather rkt and systemd-nspawn containers. There is some Golang code in getLeaderFromContainer that uses this D-Bus API.
systemd-machined offers a D-Bus API for container run-time to register their containers. systemd-nspawn and rkt uses it so containers can be listed with:
Weave Scope could use systemd-machined's D-Bus API to gather rkt and systemd-nspawn containers. There is some Golang code in getLeaderFromContainer that uses this D-Bus API.