Hello, new to docker and trying a little project.
I have setup a simple Ubuntu 22.04 container and using bash i have installed all the services and features i need, mostly MySQL 8.0 and a few networking features. I also setup the mysql databases (in a mounted folder on the NAS), user accounts, and set the passwords for the accounts.
I then used 'docker commit' to save the upgraded container as a new image. Everything works, and if I use the image to make a container and boot that container, i can use the attached terminal to run 'service mysql start' and it will run perfectly.
But I would like mysql to start on its own unattended. And I am having real trouble googling how to make this happen.
I have tried setting the command to = --default-authentication-plugin=mysql_native_password
and setting a variable MYSQL_ROOT_PASSWORD with the root users SQL password.
DSM is 7.2 and Container Manager is 20.10.23
I have setup a simple Ubuntu 22.04 container and using bash i have installed all the services and features i need, mostly MySQL 8.0 and a few networking features. I also setup the mysql databases (in a mounted folder on the NAS), user accounts, and set the passwords for the accounts.
I then used 'docker commit' to save the upgraded container as a new image. Everything works, and if I use the image to make a container and boot that container, i can use the attached terminal to run 'service mysql start' and it will run perfectly.
But I would like mysql to start on its own unattended. And I am having real trouble googling how to make this happen.
I have tried setting the command to = --default-authentication-plugin=mysql_native_password
and setting a variable MYSQL_ROOT_PASSWORD with the root users SQL password.
DSM is 7.2 and Container Manager is 20.10.23