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

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

If you don’t have docker-compose, then you can define CAP_SYS_NICE via

docker run --cap-add=sys_nice -d mysql

References:

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)