'What is the limit of a docker container layer?

I'm running my app in AWS ECS using an EC2 cluster, I want to create a cache using the disk space. My concern is the amount of memory that is being used by the container.

I know that if I don't mount a volume the data is going to be stored in the container layer, but I don't find if this container layer has any limit and if the container layer is using the disk space or the ram of my host, my bet is that the container layer is using the disk space as this is the same behavior of the image layer, so these are my questions:

Does the container layer in a docker container has a limit?

Where a docker host stores the data that is created by my app in my container layer?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source