jontilt
(Jontilt)
July 2, 2016, 5:35pm
1
In earlier betas I could set properties such as fs.file-max in the advanced preferences section.
In beta 17 I can no longer do this and there is no obvious way of changing kernel parameters.
This means Docker for Mac is now unusable for me.
D0C143F0-5743-4F4A-BA79-CE076201BD57
brokosz
(Brokosz)
July 2, 2016, 7:01pm
2
Can you not set it manually via datakit and git commit
?
jontilt
(Jontilt)
July 3, 2016, 3:27pm
3
bypassing the issue for now with:
docker-machine ssh
sudo sysctl -w fs.file-max=524288
exit
Although this needs resetting each time you restart the VM
nguoianphu
(Nguoi An Phu)
October 27, 2016, 8:53am
4
Hi,
Could we make its value permanently after restarting the VM? I don’t want to re-configure it everytime.
dsheets
(David Sheets)
October 27, 2016, 9:46am
5
The default is fs.file-max=524288
. Please upgrade if you do not have this default set.
nguoianphu
(Nguoi An Phu)
October 27, 2016, 10:45am
6
Oh, I’m sorry. I’m using Docker Toolbox on Windows 7 (docker-machine.exe version 0.8.0, build b85aac1).
And I want to change this value:
sysctl -w vm.max_map_count=262144
By default, it has only 65530
$ docker-machine ssh default "sysctl vm.max_map_count"
vm.max_map_count = 65530
I just want to keep the setting permanently.
nguoianphu
(Nguoi An Phu)
November 2, 2016, 2:24am
7
Thanks, I know how to make the setting persistent on Boot2docker now.
docker-machine ssh default
sudo vi /var/lib/boot2docker/bootlocal.sh
# Add this line into the profile file
sysctl -w vm.max_map_count=262144
# Then make it runable
sudo chmod +x /var/lib/boot2docker/bootlocal.sh
1 Like