I am running a database (CouchDB) from a Docker container on Unix (AWS EC2). For the database files, I have created an 'external' (ie. external to the container, but on the same host) volume which is mounted to the database inside the Docker container.
Does ulimit -f control/restrict file sizes for files created by this database running inside the Docker container but saved to the 'external' volume on the host? The only information I can find suggests ulimit -f only restricts parameters for files run through 'the shell or its children'. Is the Docker container considered to run through the shell?
If this will not work, is there any other way to restrict file sizes for my circumstance?