Last active
November 12, 2023 13:33
-
-
Save vicenterusso/ae6d6c903b790e5dae91c339c1ce2ba8 to your computer and use it in GitHub Desktop.
Docker Compose with fix Fedora 35/36/37 MySQL container - Leak Memory - High Usage - Error code 137
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mysqldb: | |
image: mysql:5.7.22 | |
container_name: mysql_container_name | |
restart: always | |
ulimits: | |
nproc: 65535 | |
nofile: | |
soft: 20000 | |
hard: 40000 | |
volumes: | |
- "./data:/var/lib/mysql" |
Confirm this work on F36
Thanks it works in a new F36 install, weird that my previous F36 didn't have this issue.
Works on Fedora 36, mysql 5.7 was able to start
Working fix for the issue Fedora 37, mysql 5.7
Client: Docker Engine - Community
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:02:36 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 3056208
Built: Tue Oct 25 18:00:17 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.12
GitCommit: a05d175400b1145e5e6a735a6710579d181e7fb0
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Thanks, this fix memory usage on my desktop too, linux-zen arch
Works for me too on Linux-zen 6.1.12 on Arch Linux. Thanks!
Thanks
This is also in compose-file documentation but is not really mentioned as a problem fix.
Also, I want to add that this fix is not specifically Fedora related, but rather any system with bad/unlimited default ulimits, since the container just inherits them.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It just works 🚀