We have an issue where mysql fails as soon as we try to use a local volume to store persistent data (docker-compose file below). It comes up with a long list of errors:
We have tried already the option: "command: “–innodb_use_native_aio=0” as this was suggested elsewhere. Without the local volume the mysql container works flawless. Would appreciate any hints.
Thank you - the named volume resolved the issue.
The reason for local and persistend storage was to find a way to backup the data - but this is another story…
That’s what I was suspecting. Don’t expect that you get a reliable backup if you copy the content of /var/lib/mysql. If your database is not too big the best way is to use mysqldump.