2025-01-31, 07:48 PM
I don't recommend using docker on macOS unless you are fine giving up all hardware acceleration capabilities. Also the way you are checking the max open files on macOS is not right. You should do
To make a persistent change to increase this limit you need to paste the following, save as
Bind mount for remote network share on docker was never stable especially on macOS/Windows where such mount has to go across a VM boundary. If you have to use docker I recommend to use docker volume with CIFS backend instead of hacking with mount points in the container. It is easier and works more reliable.
launchctl limit
and the default is only 256 open files.To make a persistent change to increase this limit you need to paste the following, save as
limit.maxfiles.plist
, and put it under /Library/LaunchDaemons/
, then reboot your Mac. Upon next boot, the maxfiles should show 524288 for launchctl limit
.Bind mount for remote network share on docker was never stable especially on macOS/Windows where such mount has to go across a VM boundary. If you have to use docker I recommend to use docker volume with CIFS backend instead of hacking with mount points in the container. It is easier and works more reliable.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxfiles</string>
<string>524288</string>
<string>524288</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>