容器已启动;
skip-host-cache
skip-name-resolve
performance_schema_max_table_instances=400
table_definition_cache=400
table_open_cache=256
performance_schema=off
将这个文件复制到mysql容器内
sudo docker cp ./docker.cnf 容器名:/etc/mysql/conf.d
更新容器资源占用
docker update -m 400M --memory-reservation 400M --memory-swap 500M 容器名
不能设置过低,最少也得300M左右,我试过250-250-300会无法启动
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有