Skip to content

Conversation

@abetomo
Copy link
Member

@abetomo abetomo commented Jul 30, 2025

The main change is to specify the root password setting in an environment variable.

We are adding other options that would be better to have.

  • --rm: Remove the container when finished
  • --name: Name the container
  • Change option name to full name

The connect command was also updated to connect with the mysql command in the container.

abetomo added 2 commits July 30, 2025 09:53
The main change is to specify the root password setting in an environment variable.

We are adding other options that would be better to have.

* --rm: Remove the container when finished
* --name: Name the container
* Change option name to full name
README.md Outdated
$ mysql -h <container's ipaddr> -u root
$ sudo docker container run \
--detach \
--env MYSQL_ALLOW_EMPTY_PASSWORD=1 \
Copy link
Member

Choose a reason for hiding this comment

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

How about we use -env MYSQL_ROOT_PASSWORD=my-secret-password just in case?
Because I think MYSQL_ALLOW_EMPTY_PASSWORD doesn't suggest in many use cases.

@komainu8 komainu8 merged commit b5db920 into mroonga:main Jul 30, 2025
2 checks passed
@abetomo abetomo deleted the docs-update-docker-run branch July 30, 2025 02:08
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.

3 participants