我有一台Windows 10 Pro PC。
我的docker compose文件中有以下内容
database:
image: mariadb:5.5.57
ports:
- "3306:3306"
volumes:
- ./sql/:/docker-entrypoint-initdb.d/
- ./data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=rootUsr
- MYSQL_PASSWORD=rootPwd
- MYSQL_DATABASE=root_db
当我运行docker-compose时 - 我在控制台中收到此错误
database_1 | InnoDB: 0 pages (rounded down to MB) than specified in the .cnf file:
database_1 | InnoDB: initial 640 pages, max 0 (relevant if non-zero) pages!
database_1 | 180324 17:12:47 InnoDB: Could not open or create data files.
database_1 | 180324 17:12:47 InnoDB: If you tried to add new data files, and it failed here,
database_1 | 180324 17:12:47 InnoDB: you should now edit innodb_data_file_path in my.cnf back
database_1 | 180324 17:12:47 InnoDB: to what it was, and remove the new ibdata files InnoDB created
consumer_1 | Starting the development server...
database_1 | 180324 17:12:47 InnoDB: in this failed attempt. InnoDB only wrote those files full of
database_1 | 180324 17:12:47 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
database_1 | 180324 17:12:47 InnoDB: remove old data files which contain your precious data!
database_1 | 180324 17:12:47 [ERROR] Plugin 'InnoDB' init function returned error.
database_1 | 180324 17:12:47 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
database_1 | 180324 17:12:47 [Note] Plugin 'FEEDBACK' is disabled.
database_1 | 180324 17:12:47 [ERROR] Unknown/unsupported storage engine: InnoDB
database_1 | 180324 17:12:47 [ERROR] Aborting
我是否需要做任何其他事情才能让码头工程师运行maria db?
更新 我已经尝试删除所有卷并进行重建,但我仍然得到与下面相同的错误
答案 0 :(得分:0)
从撰写文件中删除了卷,但它运行正常。 的更新强> 在Amazon EC2实例上尝试了相同的docker compose文件,并且它第一次正常工作