-
Notifications
You must be signed in to change notification settings - Fork 535
Unknown MySQL server host 'mariadb' #179
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
Try to clean up your volumes and run again |
Tested again: docker-compose down #image: wodby/mariadb:10.1-2.1.0 docker-compose up -d -> Same problem. docker-compose down image: wodby/mariadb:10.1-2.1.0 docker-compose up -d -> Works fine. |
Try tag 2.3.5, it comes with mariadb 10.1.26 |
Did docker-compose down, kill, rm ... then: #image: wodby/mariadb:10.1-2.1.0 docker-compose up -d -> same error: Log:
When I switch back to: |
I have the same problem as @Vacilando under Windows 10 Pro with docker version 17.06.2-ce, build cec0b72 and docker-compose version 1.14.0, build c7bdf9e3. I use the image wodby/mariadb:10.1-2.3.3. The same image (respectively the same docker-compose / project configuration) under Mac OS X and Linux there is no problem. If I go back to image version wodby/mariadb:10.1-2.0.0, under Windows 10 all works again. With wodby/mariadb:10.1-2.3.5, I get the same mysql error:
It seems that the problem is a windows only problem and is related to the filesystem (file layer in docker): MariaDB/mariadb-docker#58 If I delete the database files from volume and mariadb creates the db new, the following error occurs:
|
I am experiencing a similar problem, mariadb won't stay up (Status: Exit 1 when checking with docker-compose ps) I checked the logs with portainer (http://portainer.drupal.docker.localhost:8000 ) I tried commenting out the volumes section of the mariadb service as suggested in #37 , no luck there. As @csandanov suggested in wodby/mariadb#2 recreating the containers worked for me. So running |
If you run MariaDB on windows with a bind mount from host see #222 (comment) |
With the latest docker-compose.yml on Windows 10 I am getting "Unknown MySQL server host 'mariadb'" when I try to install a fresh D7.
I solved it by replacing
image: wodby/mariadb:10.1-2.3.3
with
image: wodby/mariadb:10.1-2.1.0
This is to report that there's probably some problem with image wodby/mariadb:10.1-2.3.3 in situations similar to mine.
Here's the output of: docker-compose logs mariadb
The text was updated successfully, but these errors were encountered: