The exception ‘Unable to connect to any of the specified MySQL hosts.’ was thrown while attempting to find ‘DbContext’ types com docker
The exception ‘Unable to connect to any of the specified MySQL hosts.’ was thrown while attempting to find ‘DbContext’ types com docker
‘Unable to connect to any of the specified MySQL hosts.’
Provavelmente faltou uma flag.
Segue o exemplo que deru certo.
docker container run -d --name mysql -v dadosdb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=numsey mysql:8.3
este comando não tinha o -p 3306:3306
Agora ficou certo:
docker container run -d --name mysql -p 3306:3306 -v dadosdb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=numsey mysql:8.3