Skip to content

"Running as an arbitrary user" broken in 8.0.37 #1074

@mhutter

Description

@mhutter

As of 8.0.37-debian, the entrypoint script tries to create the /var/lib/mysql-files directory on startup. This does not work when running as a non-root user, as /var/lib (correctly) is not writable by arbitrary user IDs.

Steps to reproduce

  • Deploy docker.io/library/mysql:8.0.36-debian in a scenario where the user cannot write arbitrary files (e.g. on OpenShift platforms)
  • Upgrade to docker.io/library/mysql:8.0.37-debian

Expected outcome

  • Since this is a patch level upgrade, the setup should continue to run as-is

Actual outcome

  • The container crashes upon startup.

Workaround

  • Mount a volume at /var/lib/mysql-files

Possible Fixes

  • Revert the change
  • Document that /var/lib/mysql-files must also be mounted and writable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions