I have a problem with a Docker image that I instantiate with the “Docker Desktop” tool on Windows.
I have two images:
- one for a database server with Mariadb ;
- the other for a PHP 7 application server.
It seems that I have a problem with the shared disk of the host and more particularly with the space that my programs would like to allocate.
In concrete terms, when I try to create files and fill them in, I have no worries. Everything works.
cat /dev/random > /myshare/test.bin
However, when I try to start MariaDB server, it gives me the following error:
2019-03-11 6:34:23 0[ERROR] InnoDB: preallocating 12582912 bytes for file ./ibdata1 failed with error 95
2019-03-11 6:34:23 0[ERROR] InnoDB: Could not set the file size of ‘./ibdata1’. Probably out of disk space
2019-03-11 6:34:23 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.
2019-03-11 6:34:24 0[ERROR] Plugin “InnoDB” init function returned error.
2019-03-11 6:34:24 0[ERROR] Plugin "InnoDB’ registration as a STORAGE ENGINE failed.
2019-03-11 6:34:24:24 0[ERROR] Unknown/unsupported storage engine: InnoDB
2019-03-11 6:34:24 0[ERROR] Aborting
The sharing with the host is of the CIFS type, when I do a “df -hf”, I notice that I have free space.
Regarding the Apache/PHP application server, I also had a problem with creating the UNIX socket in a “run” folder of my CIFS share. I fixed this problem by internalizing the socket in the “/var/run” folder of the Docker instance.
I don’t understand, can you help me? Have you ever experienced this problem?
It seems to me that I don’t have a problem with disk space and UNIX rights are well positioned on folders (I even tested with a 777 and I still have a problem).
Finally, I would like to point out that I don’t have this problem when I instance my image on a GNU/Linux server.
Thanks a lot,