Skip to content

Conversation

gouglhupf
Copy link
Contributor

Completes and clarifies the “Initializing a fresh instance” section in mysql/content.md to accurately document how initialization files are discovered and executed by the image.

What changed

Expanded the paragraph to explicitly document:

  • Supported file extensions in "/docker-entrypoint-initdb.d": .sh, .sql, .sql.gz, .sql.bz2, .sql.xz, .sql.zst.
  • Shell script handling: .sh without execute permission are sourced; executable .sh are run.

Rationale

The previous text was incomplete/ambiguous about which files run and sourcing vs executing .sh files.
This aligns the docs with the actual behavior in the entrypoint and aligns with the wording used in the mariadb image.

Impact

Docs-only change

Co-authored-by: Tianon Gravi <[email protected]>
Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tianon tianon merged commit d2cae76 into docker-library:master Oct 8, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants