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

8.4.0 docker: ls: cannot access '/docker-entrypoint-initdb.d/': Operation not permitted #1067

Open
CxistHans opened this issue Jun 12, 2024 · 2 comments

Comments

@CxistHans
Copy link

CxistHans commented Jun 12, 2024

service

docker service create --name test_mysql \
  --env MYSQL_ROOT_PASSWORD=8NTVs5enkH7byuQS \
  --config source=mysql.cnf,target=/etc/mysql/my.cnf \
  mysql:8.4.0

config: mysql.cnf

# only test for empty

errorLog

2024-06-12 15:03:50+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.0-1.el8 started.
2024-06-12 15:03:50+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-06-12 15:03:50+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.4.0-1.el8 started.
ls: cannot access '/docker-entrypoint-initdb.d/': Operation not permitted

info

Kernel Version: 3.10.0-957.el7.x86_64
CentOS Linux release 7.6.1810 (Core)
Docker Version: Server Version: 19.03.8

QA

When I remove --config, it can start normally. After adding it, even if mysql.cnf does not have any configuration, it cannot start.
Tried both mysql:8.4.0 and 8.4.0-oraclelinux8, same problem.
This problem was not discovered when some servers were deployed, but this problem was discovered when this older server was deployed.

@tianon
Copy link
Member

tianon commented Jun 12, 2024

This is likely seccomp -- you'll want to update Docker, libseccomp2, runc, etc on your host: docker-library/official-images#16829

@CxistHans
Copy link
Author

@tianon On another CentOS 7 machine, the docker version is the same, the libseccomp version is the same,
and the kernel is slightly inconsistent. It is 3.10.0-1062.el7.x86_64. It started normally with 8.4.0-oraclelinux8.
Is there any other way to support the deployment of 8.4.0 through docker service?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants