I am starting the sentrifugo-app container and then sentrifugo-db. The db container takes some time to initialize mysqld. Therefore the third command (which creates the database for sentrifugo) fails.
vish@freeman:~/vishy/devops-agility-roots/docker-sentrifugo$ ./run-container.sh
eafef0cdadcea033ff9341ba905d52552f104ed839e6e016608702c3786a1236
1fa4e55b19c01b123130de79fdb42b4f7715f7449df75f721db9c626f48c5366
--creating database
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '172.17.0.2' (111)
I am starting the
sentrifugo-app
container and thensentrifugo-db
. The db container takes some time to initializemysqld
. Therefore the third command (which creates the database for sentrifugo) fails.