I am using the rancher/server:stable and my command looks like this.
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable --db-host dbHostname --db-port 3306 --db-user dbUser --db-pass dbPassword --db-name cattle
I created the database per the instructions online. I am starting rancher via the command above. I am getting the error below.
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not connect to address=(host=dbHostname)(port=3306)(type=master) : dbHostname)
- If I try connecting remotely to the cattle db via the rancher host. It works just fine.
Is there a way to get additional details about why it will not connect?