Skip to content
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

Can't run MariaDB container #2231

Closed
Wultyc opened this issue Aug 7, 2019 · 2 comments
Closed

Can't run MariaDB container #2231

Wultyc opened this issue Aug 7, 2019 · 2 comments

Comments

@Wultyc
Copy link

Wultyc commented Aug 7, 2019

Info:

  • Docker version ($ docker --version): 19.03.1, build 74b1e89
  • Laradock commit ($ git rev-parse HEAD): 8254c34
  • System info (Mac, PC, Linux): Windows 10 Pro
  • System info disto/version: 1903

Issue:

When trying to up a MariaDB container this message is printed
ERROR: for laradock_mariadb_1 Cannot create container for service mariadb: b'An unexpected error occurred while sharing drive'


Expected behavior:

MariaDB container running normally


Reproduce:

docker-compose up -d mariadb

@Wultyc
Copy link
Author

Wultyc commented Aug 8, 2019

I found the issue. Something is happening with the volumes.
1st I tried to run mariadb normally. I've only changed the version to 10.4 and it crashed.
test_1-1
test_1-2

PS D:\Projetos\laradock> docker-compose up -d mariadb
Creating network "laradock_frontend" with driver "bridge"
Creating network "laradock_backend" with driver "bridge"
Creating network "laradock_default" with the default driver
Building mariadb
Step 1/9 : ARG MARIADB_VERSION=latest
Step 2/9 : FROM mariadb:${MARIADB_VERSION}
 ---> 3be89eaa5c2b
Step 3/9 : LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
 ---> Running in bf8810a299a5
Removing intermediate container bf8810a299a5
 ---> 902c1c0a1d8a
Step 4/9 : ARG TZ=UTC
 ---> Running in bd9f0ccd7667
Removing intermediate container bd9f0ccd7667
 ---> 649228690c6c
Step 5/9 : ENV TZ ${TZ}
 ---> Running in 830396df5e4e
Removing intermediate container 830396df5e4e
 ---> 73a0a381d655
Step 6/9 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/
 ---> Running in 77ab797ae21d
Removing intermediate container 77ab797ae21d
 ---> 6268d05397cb
Step 7/9 : COPY my.cnf /etc/mysql/conf.d/my.cnf
 ---> c8bb3113ced1
Step 8/9 : CMD ["mysqld"]
 ---> Running in fd9c30aad8c4
Removing intermediate container fd9c30aad8c4
 ---> fde22147da87
Step 9/9 : EXPOSE 3306
 ---> Running in 82d5cd598894
Removing intermediate container 82d5cd598894
 ---> e565575b8aa0
Successfully built e565575b8aa0
Successfully tagged laradock_mariadb:latest
WARNING: Image for service mariadb was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating laradock_mariadb_1 ... error                                                                                                                                                           
ERROR: for laradock_mariadb_1  Cannot create container for service mariadb: b'An unexpected error occurred while sharing drive'

ERROR: for mariadb  Cannot create container for service mariadb: b'An unexpected error occurred while sharing drive'
ERROR: Encountered errors while bringing up the project.

Then I tried to remove all volumes mounted on my machine and all worked well
test_2-1
test_2-2

PS D:\Projetos\laradock> docker-compose up -d mariadb                                                                                                                                           Creating network "laradock_frontend" with driver "bridge"
Creating network "laradock_backend" with driver "bridge"
Creating network "laradock_default" with the default driver
Creating laradock_mariadb_1 ... done 

@Wultyc
Copy link
Author

Wultyc commented Aug 8, 2019

I found online, other people with the same issue and it looks like the problem is docker for Windows so I'm gonna close this issue
docker/for-win#690

@Wultyc Wultyc closed this as completed Aug 8, 2019
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

No branches or pull requests

1 participant