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.