Connection refused when connecting Metabase to Druid

I’m running Metabase within Docker and Druid in WSL (Windows Subsystem for Linux).
I’ve set up a datasource on Druid and now I’m trying to connect Metabase to it.
I open Metabase webpage and I go to Settings -> Admin -> Add Database. I select Druid and I type a name for the database. I’m leaving the host and port as default since I didn’t change them. When clicking on Save it displays the error:
Connection refused (Connection refused)
I can query Druid broker at http://localhost:8082 so the parameters are correct.
I don’t know how to access Metabase logs. Can you please tell me how to do that or how to solve this problem?

Hi @enlo
Remember that when running Metabase in Docker, you’re kinda running a virtual machine, so localhost on your host computer is not the same as localhost inside of a Docker container.
When you use localhost inside a container, it’s referring to the container itself.
You need to read the documentation on Networking in Docker, so you can connect to the network.
https://docs.docker.com/network/

And you can access the Metabase logs either by command docker logs <container-id> or via Admin > Troubleshooting > Logs.

Well it was that simple! Thank you @flamber