mysql_1 | chown: changing ownership of '/var/lib/mysql/': Operation not permitted
mysql container should successfully start.
Use d4m-nfs (https://github.com/IFSight/d4m-nfs)
Use LaraDock in multi site way, direcory structure:
Warning:
BASE_DIR_PATH/data/mysql MUST exist since /tmp is the only directory shared by docker (see https://github.com/IFSight/d4m-nfs)
Adjust .env file as follows:
APPLICATION=../projects
DATA_SAVE_PATH=../data
PHP_VERSION=56
# start d4m-nfs
/path/to/d4m-nfs/d4m-nfs.sh
# rebuild everything
docker-compose build --no-cache nginx mysql phpmyadmin workspace php-fpm applications
# start relevant containers
docker-compose up nginx mysql phpmyadmin
Specifying the user in the docker-compose.yml file worked for me.
In the MySQL / MariaDB container section add: user: mysql
@JohnAlonso Thx, it works!!!!
Specifying the
userin thedocker-compose.ymlfile worked for me.In the MySQL / MariaDB container section add:
user: mysql
thank you! you save my day.
your answer helps me to resolve a similar issue on Kubernetes.
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
Once again, thank you!
Most helpful comment
Specifying the
userin thedocker-compose.ymlfile worked for me.In the MySQL / MariaDB container section add:
user: mysql