It’ll be hard or, more likely, impossible to do that, as docker isn’t supposed to give out any info on the host OS.
I have a dashboard that will do command line upgrades. It sends an email with info like
Upgrade Details
- Your Discourse URL: https://myforum.us
- Current Discourse Version: 3.4.0.beta2-dev (commit ed4791d0b018e8a1608d4912728e3438ce4148d8). You can check out release notes here.
- Discourse IP: 127.0.0.1
- Postgres Version before upgrade: 13.16.
- Discourse YML: web_only
- Docker version before upgrade: 20.10.12.
System Details- OS VERSION: Ubuntu 20.04
- Memory:
- Total Memory: 15996mb
- Swap: 0mb
- Disk space:
- Mount point: / has 51 GB free
- System uptime: 5 Days
I charge $300/year to use it with my support, but you can join the Free Trial group and use it for free.