Closed migoth closed 6 years ago
@Migoth I'm not sure about Docker Toolkit for Windows, I tested it via Docker Toolbox and I recommend this in README, besides I could check this on the Docker Toolkit, but it will be near next 5-7 days.
@a-kom Sry, i meant Docker Toolbox. And I proceeded to the README.
@Migoth, okay, I'll double check this today, could you add more info? Did you use last release of Docker Compose LAMP? Could you provide list of steps to reproduce issue?
@a-kom I just downloaded the last release of docker-compose-lamp and proceeded to the README. Im using Windows 10 Pro.
@Migoth, okay, will check this today in 6 hours, seems this error isn't related to Docker Compose LAMP, besides as a fast solution you could change image: mariadb:10.0
to image: mysql
inside docker-compose.yml.
When I change the image to mysql I get the following error:
Initializing database 2018-01-22T11:05:08.370341Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-01-22T11:05:08.396820Z 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive 2018-01-22T11:05:09.385622Z 0 [ERROR] InnoDB: Operating system error number 22 in a file operation. 2018-01-22T11:05:09.385751Z 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument' 2018-01-22T11:05:09.385802Z 0 [ERROR] InnoDB: File ./ib_logfile101: 'aio write' returned OS error 122. Cannot continue operation 2018-01-22T11:05:09.385832Z 0 [ERROR] InnoDB: Cannot continue operation.
@Migoth, so this apply after you run docker-compose up -d
?
Yes. Or docker-compose up -d --force-recreate
@Migoth, pls run:
1) docker-compose stop && docker-compose rm -f
2) Remove folder docker/runtime/mysql
3) Run docker-compose up -d
I'm not sure if this help in this case, but you'll recreate from scratch and run on clean docker containers.
Also, I'll check this on Windows today later.
@a-kom Unfortunately, I have already tried that. Does not bring anything
@Migoth, currently, I checked this on Linux and all works fine. Wait for my reply today about Windows.
Yes, everything is running in Linux. Unfortunately not on Windows.
I got a db server up and running. I downloaded mysql:8.0.
My changes in docker-compose.yml
mysql: build: docker/images/mysql/
image: mysql
volumes: - "./.data/db:/var/lib/mysql" environment: MYSQL_ROOT_PASSWORD: root MYSQL_USER: simplitec MYSQL_PASSWORD: 123 MYSQL_DATABASE: simplitec # command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # The simple way to override the mariadb config. networks: - internal
and i added innodb_use_native_aio=0
to the docker.cnf of mysql.
@Migoth, could you provide the original docker-compose.yml file that use and that caused the issue? I want to clarify it and check in case to reproduce and understand issue.
@Migoth, thank you.
@Migoth I'm not sure about the problem, I'll try to check it on the Virtual Box with the fresh install, but on my home Windows (Windows 10 PRO) it works fine, I installed successfully the last version of Drupal. Seems, it is related to your system or installation of the Docker Toolbox.
@Migoth, could you provide the example of the docker build file for mysql?
After all. If you want to archive your project on Linux and extract to use on Windows with Docker Toolbox just remove ibdata
and ib_logfile*
files in your MySQL data directory. Uncomment in docker-compose.yml
section # build: docker/images/mysql/.
and remove section image: mysql
. Then run a command:
docker-compose stop && docker-compose rm -f && docker-compose up --build -d
To verify MySQL container work run a command:
docker-compose ps
.
I tried to start the container via docker toolbox for windows. However, I get the following error with MariaDB: