-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
docker logs mbind: Operation not permitted #303
Comments
same issue here |
The server use mbind for NUMA (non-uniform memory access) operations, but Docker blocks this access by default. It's possible to provide a custom profile that allows it, but the syntax of the profile files has changed across Docker versions, so it's kind of messy. There's more about this here: https://docs.docker.com/engine/security/seccomp/ |
Closing since this is more an issue with the default configuration of Docker's seccomp profile, and there's not anything we can do to fix this in the image itself. See docker-library/mongo#113 for a similar issue over on the As noted there, adding something to the documentation (especially referencing the error message) would be a great idea. 👍 |
All of a sudden I started getting these mbind errors as well. For me, the solution was locking down the version of the mysql docker image. I changed my
to...
|
@johncmunson - we're seeing the same thing - |
None of this workarounds does work for me. I've tried on my local env, on a virtual machine and even on a VPS and nothing, same issue. I've tried using a different version and it crashes, seriously thinking it might be a bug or something. version: '3.1'
services:
mysql:
image: mysql
container_name: mysql.dev
restart: always
ports:
- 13306:3306
environment:
MYSQL_ROOT_PASSWORD: brage
MYSQL_DATABASE: mysqlapp
adminer:
image: adminer
restart: always
links:
- mysql
ports:
- 18080:8080 The only way to connect is by To connect to adminer it´s straightforward, just open the browser and type |
Please bump when latest tag images are fixed :/ |
The |
I came across this by googling the mbind thing. Just adding this here to allow others to know that regardless of the root issue using 5.7 instead of latest fixed the problem and got the container running again |
It's not "fixed" because there's not a bug here we can fix. The If your MySQL daemon is not starting, there's a very low chance that this |
The underlying issue wasn't fixed in time for 8.0.12 unfortunately, but as tianon says the message is just a warning. There's a workaround in the upstream image that fixes this, but the workaround was to disable numa support in the binary, which is ok for the docker-custom rpm we use there, but not for the regular debian packages used in this image |
@tianon @ltangvald Thanks for the info! |
add this in docker-compose can fix it
|
@bensonfx That disables much of docker's native security, and is not recommended for anything aside from testing. However, this issue is fixed in 8.0.13, so just update the image and you should no longer see the error message. |
@ltangvald not true. I'm still able to see this issue in |
it is OK |
security_opt is not working on docker swarm. |
my error as follows :
but I tried the option
then fix it. |
You can add |
thx |
please reopen this. "security_opt" and "cap_add" not supported in compose for docker swarm. |
The issue should totally be open. What does this warning even say? Mysql instead of forwarding errors from OS that tell us very little, could provide warning with context of how it affects mysql. Also, maybe there are better ways of informing us about some performance optimization not working, than echoing the same warning message every second. (Like, once a minute, on a bootstrap?) And last but not least, there should be an ability to somehow tweak the running mysql instance so that it doesn't care about that "performance optimization" (or whatever mbind error is blocking), and so we can run the mysql server safely without the warning. |
This comment has been minimized.
This comment has been minimized.
I also encountered the same problem. I used the appeal method but still did not solve the problem. Why? MySQL keeps restarting |
|
Performance is not an issue? I'm using version 8.0.23 and I'm still having this problem with excessive memory consumption. |
To be clear: performance is an issue, but not one we can automatically solve in the image (or even really in MySQL itself, unless that team decides to rewrite how this bit of code works), which is what I was trying to get at there -- allowing
|
你好,执行docker run mysql:8.0.1的时候,docker logs 查看容器日志出现mbind: Operation not permitted,最初以为是权限的问题,添加--cap-add=ALL参数,还是会出现该日志,请问下该问题的影响范围是什么以及如何避免出现?
The text was updated successfully, but these errors were encountered: