Comments (2)
After some more testings, the nproc ulimit is only applied for users different to the main/start process (entrypoint/cmd) of a container.
When running a container with a specific user no max user processes limit is applied.
$ docker run --rm -it -u operator centos:7 bash -c 'ulimit -u'
unlimited
When running a container and somehow switching the user or running several commands in different users the limit is applied.
$ docker run --rm -it centos:7 su -l operator -s /bin/bash -c 'ulimit -u'
4096
Without the 20-nproc.conf
file and switching the user or running several commands in different users no limit is applied.
$ docker run --rm -it centos:7 bash -c \
"rm /etc/security/limits.d/20-nproc.conf && su -l operator -s /bin/bash -c 'ulimit -u'"
unlimited
Is the default nproc limit of CentOS still useful for containers?
from sig-cloud-instance-build.
I have the same issue, ssh is refused and only if I change the number I am able to connect,
Is it OK to remove this file? or it is required?
from sig-cloud-instance-build.
Related Issues (20)
- Anaconda log files and tmp kickstart files are not removed HOT 1
- new value non-existent xfs filesystem is not valid as a default fs type HOT 3
- vmware-esxi "Failed, timeout waiting for "running"." HOT 5
- Vagrant: Multiline in /etc/pam.d/su breaks Augeas HOT 6
- include gdb-gdbserver in docker images HOT 1
- Should there be an independent image for Singularity containers?
- No new versions on prebuilt generic cloud images
- centos7-arm64.ks build failed
- Image contains bind-license package
- Vagrant image centos/6 hangs on HyperV
- CentOS 8 cloud images HOT 1
- CentOS 8 container images do not exclude docs from packages installed (unlike 7)
- Add CentOS 8.1/8.2 in Vagrant boxes HOT 8
- CentOS 7 BIOS/UEFI cloud images HOT 6
- Save about 14MB of image size
- Where is GenericCloud KS file? HOT 1
- Missing package when run in container HOT 1
- Create CentOS AMI images with GPT
- centos stream image? HOT 3
- Building CentOS images on a Centos Stream 8 host fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sig-cloud-instance-build.