How to callculate the free space on a host machine and get the information inside a docker container

Viewed 32

I want to run a shell script which calculates the free disc space on the host machine so that the docker container can use the information in one of its REST endpoints.

Is there a clean way to do this or should I try to solve the problem differently. Because I'm quite sure that it is not a good idea to create this coupling between host and container.

0 Answers
Related