0

Error: Caused by: java.net.UnknownHostException: host.docker.internal: Name or service not known

Reason: as I understand the problem, docker creates random alias for 172.17.0.1 instead of host.docker.internal. If you connect to db via jdbc:mysql://172.17.0.1:3306/DB, it will work as well.enter image description here

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jan 31 '23 at 09:19

0 Answers0