How to get host system information inside docker container?

  docker, docker-compose, system-information

I am using MAC, Docker Desktop and SystemInformation NPM package to read the system hardware configurations but unable to read Host system information from the docker container.

This package always returns the container information. need to read Host system information and send it to the cloud db.

I am trying to read RAM size, HDD size, CPU performance, OS version, and more.

Docker Desktop version 3.1.x
SystemInformation NPM version : 5.5.x

Source: Docker Questions