Docker for Mac unusable now that sysctl.conf editor has been removed

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.


Can you not set it manually via datakit and git commit?

bypassing the issue for now with:
docker-machine ssh
sudo sysctl -w fs.file-max=524288

Although this needs resetting each time you restart the VM


Could we make its value permanently after restarting the VM? I don’t want to re-configure it everytime.

The default is fs.file-max=524288. Please upgrade if you do not have this default set.

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.

Thanks, I know how to make the setting persistent on Boot2docker now.

    docker-machine ssh default
    sudo vi /var/lib/boot2docker/
    # Add this line into the profile file
    sysctl -w vm.max_map_count=262144
    # Then make it runable
    sudo chmod +x /var/lib/boot2docker/
1 Like

it worked for me .thanks