Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql 8.0.11 docker: mbind: Operation not permitted #422

Closed
himred opened this issue May 5, 2018 · 7 comments
Closed

mysql 8.0.11 docker: mbind: Operation not permitted #422

himred opened this issue May 5, 2018 · 7 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@himred
Copy link

himred commented May 5, 2018

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.

@ltangvald
Copy link
Collaborator

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.

@wglambert wglambert added the question Usability question, not directly related to an error with the image label May 8, 2018
theipster added a commit to theipster/TheGarageAPI that referenced this issue Sep 9, 2018
OS level error, as a result of th edefault security profile provided by
Docker (seccomp).

See docker-library/mysql#422.
@mylonasg88
Copy link

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

@tianon
Copy link
Member

tianon commented Jul 25, 2020 via email

@neohunter
Copy link

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

@wglambert
Copy link

--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

@chiqui3d

This comment has been minimized.

@tianon
Copy link
Member

tianon commented Apr 19, 2021

See also #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).

@docker-library docker-library locked as resolved and limited conversation to collaborators Apr 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

7 participants