mysql 8.0.11 docker: mbind: Operation not permitted

Created on 6 May 2018  路  7Comments  路  Source: docker-library/mysql

The docker version of mysql 8.0.11 have the following error at startup

mbind: Operation not permitted

I understand this is specific to docker security and seccomp and not directly related to mysql.
But as you propose mysql as a container, this issue impact all docker users.

Is this error a problem, since the database seems to work ?
can we safely ignore it ?
Or should I add CAP_SYS_NICE capability ?

Thanks.

question

Most helpful comment

Hi,

The error prevents certain NUMA operations from being carried out, for most use cases this won't impact the server (certain workflows get a performance improvement with NUMA).
Note that there is a bug in MySQL here; The server doesn't handle the missing permission, so the error message is directly from the os.

All 7 comments

Hi,

The error prevents certain NUMA operations from being carried out, for most use cases this won't impact the server (certain workflows get a performance improvement with NUMA).
Note that there is a bug in MySQL here; The server doesn't handle the missing permission, so the error message is directly from the os.

So what was the solution on this? I am still getting this error on SequelPRO.

Adding "--cap-add sys_nice" should make the warning go away.

@tianon On mysql 8 unknown option '--cap-add'.

--cap-add is an option for Docker not a command for the image
https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities

I continue to have this problem and in addition to excessive memory consumption

See also https://github.com/docker-library/mysql/issues/303, which is a very long discussion of this warning (the conclusion of which is that adding the SYS_NICE capability to your container is the simplest and cleanest way to adjust your container's seccomp profile to include the necessary rules to allow what MySQL is trying to do).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

axiqia picture axiqia  路  3Comments

chlch picture chlch  路  3Comments

odero picture odero  路  3Comments

seangerhardt-wf picture seangerhardt-wf  路  4Comments

AdriVanHoudt picture AdriVanHoudt  路  4Comments