-
Notifications
You must be signed in to change notification settings - Fork 454
Closed
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image
Description
Hi, I am trying to start Mariadb container up but it is not easy.
Host: Windows 10
Docker Desktop version: 2.3.0.2 (45183)
Mariadb Image tag: latest (2020.05.17)
Problem description
Mariadb container works fine with the following command.
docker run --name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest
Mariadb container does not start up if I give volume map.
docker run --name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -v D:\dockerData\mariadb\develop_on_windows\data2:/var/lib/mysql -d mariadb:latest
In the directory I can find the files newly created:
aria_log.00000001 (16KB), aria_log_control (1KB), ibdata1 (0KB)
the docker logs command prints as follow:
2020-05-16 15:13:28+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.13+maria~bionic started.
2020-05-16 15:13:28+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2020-05-16 15:13:28+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.13+maria~bionic started.
2020-05-16 15:13:29+00:00 [Note] [Entrypoint]: Initializing database files
2020-05-16 15:13:29 0 [ERROR] InnoDB: preallocating 12582912 bytes for file ./ibdata1 failed with error 38
2020-05-16 15:13:29 0 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space
2020-05-16 15:13:29 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2020-05-16 15:13:30 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-05-16 15:13:30 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-05-16 15:13:30 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-05-16 15:13:30 0 [ERROR] Aborting
Installation of system tables failed! Examine the logs in
/var/lib/mysql/ for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
You can also try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant-tables --general-log &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables;
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /var/lib/mysql/ that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
at http://mariadb.org/jira
Please let me know if I have anything missed.
Thank you.
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