I have a problem with my MySQL error log which currently mostly consists of \"mbind: Operation not permitted\" lines (see below). Why does it happen and how do I fix it?
Add the capability CAP_SYS_NICE
to your container until MySQL server can handle the error itself "silently".
service:
mysql:
image: mysql:8.0.15
# ...
cap_add:
- SYS_NICE # CAP_SYS_NICE
References:
Adding the security_opt
option in docker-compose.yml helped to solve this problem:
database:
image: mysql:latest
container_name: mysql_0
ports:
- "3306:3306"
security_opt:
- seccomp:unconfined