Expected behavior
This works on my docker in virtualbox on mac and against a docker on debian:
$ docker run centos bash -c ‘ulimit -n 10000 && echo SUCCESS’
SUCCESS
(not sure if it really had an effect, but a service I run calls ulimit and fails to start if ulimit fails)
Actual behavior
With the Docker for Mac beta this fails.
$ docker run centos bash -c ‘ulimit -n 10000 && echo SUCCESS’
bash: line 0: ulimit: open files: cannot modify limit: Operation not permitted
Information
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.10.3-beta5
Steps to reproduce the behavior
- docker run centos bash -c ‘ulimit -n 10000 && echo SUCCESS’
If the default ulimit is different, it would be good to document it. Maybe I just need to increase the ulimit in the Docker for Mac “Alpine Linux” vm running in the hypervisor? I found this file and hoped adding fs.file-max = 100000 to it would override, but pinata restart
clears it.
~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/etc/sysctl.conf