mysql-clientインストールしたくないのでdockerでやるメモで、 localhostに繋げなかったのでメモ
Docker Desktop for Windows Stable Release notes
DockerNAT has been removed from Docker Desktop 2.2.0.0 as using an IP address to communicate from the host to a container is not a supported feature. To communicate from a container to the host, you must use the special DNS name host.docker.internal. We also recommend using ports to communicate from the host to a container. For more information, see Networking.
It is not possible to use localhost in the proxy settings. You can instead use host.docker.internal to work around this issue.
host.docker.internal
を使うとよい
1 | $ mysql -h host.docker.internal ... |