How to fix “mbind: Operation not permitted” in mysql error log

后端 未结 2 1039
梦如初夏
梦如初夏 2020-12-28 14:11

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?

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 15:08

    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:

    • Docker Seccomp security profiles: https://docs.docker.com/engine/security/seccomp/
    • Docker resource constraints: https://docs.docker.com/config/containers/resource_constraints/

提交回复
热议问题