Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker run , pass ulimit nofile value can not change default nofile value 65536 #200

Open
skytalemcc opened this issue Sep 24, 2019 · 2 comments

Comments

@skytalemcc
Copy link

today i find one issue :
docker version 1.13
docker run --ulimit nofile=100000:100000
i use the image :CentOS-Dockerfiles/systemd/centos7/

i find in this container ,whatever i do or --ulimit nofile=100000:100000 to run this docker .
this docker when i ssh into it ,it still show ulimit -n 65536 。

image
image
image

this container docker shim is , nofile from host machine
image

this container init pid 1 process ,show
image

########################

This init process does not get the parameters from father process docker-shim 。
always keep 65536 。
may i know this office images whether fix the nofile to 65536 ,even docker-shim can not give the parameter to it .thanks

@skytalemcc
Copy link
Author

by the way , we use the macvlan ,so install sshd hosted by systemd .so we can directly ssh into this docker ip

@skytalemcc skytalemcc changed the title docker run , pass ulimit nofile value can not change default nofile value 65535 docker run , pass ulimit nofile value can not change default nofile value 65536 Sep 24, 2019
@skytalemcc
Copy link
Author

any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant