-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image
Description
I have this folder
$ tree
.
├── db
└── docker-compose.yml
And this configuration:
version: "2"
services:
mysql:
image: mysql:8.0
ports:
- "3306"
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
On this machine:
Linux CE589LT 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
Docker version 18.06.1-ce, build e68fc7a
docker-compose version 1.17.1, build unknown
If I do:
docker-compose up
I get this error:
Initializing database
2018-12-07T12:31:55.351428Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2018-12-07T12:31:55.351566Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.13) initializing of server in progress as process 28
2018-12-07T12:32:02.860551Z 5 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2018-12-07T12:32:05.304342Z 5 [Warning] [MY-010315] [Server] 'user' entry 'mysql.infoschema@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304417Z 5 [Warning] [MY-010315] [Server] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304432Z 5 [Warning] [MY-010315] [Server] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304443Z 5 [Warning] [MY-010315] [Server] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304469Z 5 [Warning] [MY-010323] [Server] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304488Z 5 [Warning] [MY-010323] [Server] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304500Z 5 [Warning] [MY-010311] [Server] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304612Z 5 [Warning] [MY-010330] [Server] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:05.304634Z 5 [Warning] [MY-010330] [Server] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-12-07T12:32:06.608964Z 0 [System] [MY-013170] [Server] /usr/sbin/mysqld (mysqld 8.0.13) initializing of server has completed
Database initialized
MySQL init process in progress...
2018-12-07T12:32:08.991973Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2018-12-07T12:32:08.992089Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.13) starting as process 79
2018-12-07T12:32:09.169130Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2018-12-07T12:32:09.169207Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2018-12-07T12:32:09.169221Z 1 [ERROR] [MY-012594] [InnoDB] If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them.
2018-12-07T12:32:09.169232Z 1 [ERROR] [MY-012646] [InnoDB] File ./ibdata1: 'open' returned OS error 71. Cannot continue operation
2018-12-07T12:32:09.169241Z 1 [ERROR] [MY-012981] [InnoDB] Cannot continue operation.
MySQL init process in progress...
MySQL init process in progress...
MySQL init process in progress...
[...]
MySQL init process in progress...
MySQL init process in progress...
MySQL init process in progress...
MySQL init process failed.
If I remove the volume
from my docker-compose
it works...
What is the problem?
I have tried this from both WSL
and PowerShell
Metadata
Metadata
Assignees
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image