-
Notifications
You must be signed in to change notification settings - Fork 445
bind mount crashing #58
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
Comments
@yosifkit @tianon Whatever I try, I can't get this to work 😢 . I think that many more people should be complaining if this was not working, so what am I missing?
I don't get any logs or error messages. Trying to debug it interactively it seems that it chokes on line 26 in docker-entrypoint.sh With my limited bash knowledge, I could make it work by changing line 26 to And even after doing the workarounds above, I'm back to my problems in this issue. Any help would be appreciated. Thanks. |
Well, to use the
That shouldn't be any different than when you were changing the uid/gid of the mysql user. |
@yosifkit After days of debugging I think I have finally found what was causing my issue. I thought I would document it here so that others may benefit from my struggle, I hope you don't mind. Now that I fully understand #59 I can say that it did indeed help a lot, thanks. But it was only one of two pieces of my puzzle. We use NFS backed volumes both for local development and production. My initial error in this issue was caused by the combination of NFS backed volumes and Running @yosifkit Do you now the impact of removing this configuration? Can it be merged into the official image? |
@michaellopez, we don't want to change the default config. You should be able to just add $ docker run -d -e MYSQL_ROOT_PASSWORD=foo mysql --innodb_flush_method=NULL |
@yosifkit Thanks for the tip! |
I'm trying to use a host bind mount to store mariadb data. It crashes when I bind mount from the host.
I'm changing uid and gid on mysql user and group inside the image to match what I have in OS X. This is what I'm trying to debug with:
As you can see, it seems to write initial files properly, but InnoDB seems to choke on reading them, claiming it does not have access rights to the directory. What else can I do to grant it access?
docker run --rm -e MYSQL_RANDOM_ROOT_PASSWORD=1 mariadb:10.1.14
works without problem.The text was updated successfully, but these errors were encountered: