I have created a mysql container like so:
docker run --name nextcloud-mysql -e MYSQL_ROOT_PASSWORD=ABC -e MYSQL_DATABASE=nextclouddb -e MYSQL_USER=nextclouduser -e MYSQL_PASSWORD=123 -d mysql:8
I have also created a nextcloud container like so:
docker run -d --network mynetwork --ip 192.168.1.227 --restart unless-stopped nextcloud
In my browser I call up 192.168.1.227 and am greeted by the first run wizard.
I enter the following info:
- username: admin
- password: ***
- database user: nextclouduser
- database password: 123
- database name: nextclouddb
- database host: nextcloud-mysql
Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000]  php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
Any help in getting this cleared up would be great.