I have a docker mysql image running, following is what the docker-compose.yml file looks like:
I got it!! The answer is to use the
--service-ports option when running
docker-compose run --service-ports db (the original docker-compose.yml file works fine)
Thanks to all for the help!