apache / apache/incubator-seata-go-samples
when you run 'podman-compose -d up ' on rocky linux mysql containe will report err
- Dominant language
- Go
- Stars
- 48
- Forks
- 46
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 2
Description
**What happened**:
`
podman-compose up mysql
[mysql] | 2025-12-10 06:00:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.32-1.el8 started.
[mysql] | 2025-12-10 06:00:11+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
[mysql] | 2025-12-10 06:00:11+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.32-1.el8 started.
[mysql] | ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied
`
**What you expected to happen**:
when i git clone the repo to my local env, I should change nothing to run the samples.
**How to reproduce it (as minimally and precisely as possible)**:
1. use rocky linux 9.6 image to create an vm as local env
2. then `cd incubator-seata-go-samples/dockercompose`
3. podman-compose up -d
4. podman logs mysql
**Anything else we need to know?**:
you can do like this to fix it:
volumes:
- ./mysql:/docker-entrypoint-initdb.d:Z
- ./mysql/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf:Z
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in incubator-seata-go-samples/dockercompose, reproduce the issue on Rocky Linux 9.6 with podman-compose up -d, and inspect the mysql container logs. Compare the bind mounts with the proposed :Z labels; done means the MySQL container starts without the permission-denied error and the sample runs unchanged after cloning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, linux, mysql
- Domain
- databases, devops, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100