This repository was archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
can mount volumes from host for MySQL data on Windows Docker #42
Copy link
Copy link
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 same problem. Percona(or mariadb or mysql) can not start.
Docker stats:
docker -v
Docker version 17.03.0-ce, build 60ccb22
docker-compose -v
docker-compose version 1.11.2, build f963d76f
docker-machine -v
docker-machine.exe version 0.10.0, build 76ed2a6Windows 10.
docker-compose.yml
_version: '2'
services:
db:
image: percona:latest
volumes:
- ./data/db:/var/lib/mysql
restart: always
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: db
MYSQL_USER: db_user
MYSQL_PASSWORD: 1234_Docker log:
Initializing database
2017-03-22T21:00:02.880303Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2017-03-22T21:00:02.880349Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2017-03-22T21:00:05.468269Z 0 [Warning] InnoDB: Retry attempts for writing partial data failed.
2017-03-22T21:00:05.468309Z 0 [ERROR] InnoDB: Write to file /var/lib/mysql/xb_doublewritefailed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 22. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
2017-03-22T21:00:05.468321Z 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument'
2017-03-22T21:00:05.469852Z 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2017-03-22T21:00:06.070990Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-03-22T21:00:06.071021Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-03-22T21:00:06.071025Z 0 [ERROR] Failed to initialize plugins.
2017-03-22T21:00:06.071028Z 0 [ERROR] Aborting
It's not permissions problems because some files was created. look this screen: http://joxi.ru/n2Y05v5CxGLLm6
I think that some problems with write db files to host machine.
There are ideas for solving the problem.
AnatoliyLitinskiy, learningnewthings, cassiohalmeida, UnrealKazu, Alex-Bond and 11 more
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