How to limit Docker filesystem space available to container(s)
The general scenario is that we have a cluster of servers and we want to set up virtual clusters on top of that using Docker. For that we have created Dockerfiles for different services (Hadoop, Spark etc.). Regarding the Hadoop HDFS service however, we have the situation that the disk space available to the docker containers equals to the disk space available to the server. We want to limit the available disk space on a per-container basis so that we can dynamically spawn an additional datanode with some storage size to contribute to the HDFS filesystem. We had the idea to use loopback files