Can ulimit on containers within docker daemon process be higher than the limit of the daemon process itself?
Docker documentation does not mention anything about this:
From : https://docs.docker.com/engine/reference/commandline/dockerd/#default-ulimit-settings
--default-ulimit allows you to set the default ulimit options to use for all containers. It takes the same options as --ulimit for docker run. If these defaults are not set, ulimit settings will be inherited, if not set on docker run, from the Docker daemon. Any --ulimit options passed to docker run will overwrite these defaults.
I've checked with Amazon Linux and it looks like it can.
Let's check it via adjusting ulimit for max number of opened files:
If the docker daemon is running, the output is:
The output: