The latest docker supports setting ulimits through the command line and the API. For instance, docker run
takes --ulimit <type>=<soft>:<hard>
and there can be as many of these as you like. So, for your nofile, an example would be --ulimit nofile=262144:262144
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…