参考:
https://blog.csdn.net/b2010happy/article/details/113689723
- Linux
修改配置文件
grep vm.max_map_count/etc/sysctl.conf
vm.max_map_count=262144
启动配置
sysctl -w vm.max_map_count=262144
- Mac
启动命令行执行
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
回车然后确认输入配置
sysctl -w vm.max_map_count=262144
-Windows and macOs with Docker Desktop
通过docker-machine进行设置
docker-machine ssh
sudo sysctl -w vm.max_map_count=262144
-Windows with Docker Desktop WSL2 Backend
wsl -d docker-desktop
sysctl -w vm.max_map_count=262144