WSL and docker
fedilink

Hi everyone!

I’m trying to get WSL and docker to work together. They kinda do at the moment, I installed an image of HomeAssistant but I noticed that I can’t connect to it from Windows.

I’ve used the virtual adapter IP, localhost, 127.0.0.1 but nothing let’s me get through it.

I did install debian instead of the default Ubuntu on windows since I’ve used debian before so I thought why not, and I’m wondering if that’s what messed it up. After a quick Google search I found some people with the same issue but apparently this should’ve been fixed in newer Windows Updates (I think it was fixed back in 2020~2021).

Also, I just want to use WSL because it’s easier from Windows imo but mostly just to test things :) I didn’t even have anything to put on HAI just testing stuff really.

Edit: someone pointed out that I should use the HA app on windows. That’s exactly what I am doing. Sorry if that isn’t clear.

Windows 11 WSL enabled Docker Windows app installed.

If you install docker desktop, it uses WSL by default. Might be easier than configuring everything manually.

@Waker@lemmy.ml
creator
link
fedilink
English
11Y

Oh I might’ve not been clear, that’s what I did.

Using the windows app I then installed the HA image, it appears to be working correctly, no errors anywhere. But I just can’t seem to be able to connect to it.

JoYo
link
fedilink
English
31Y

what IP is the service listening on? is that port exposed?

0.0.0.0 for all incoming.

@Waker@lemmy.ml
creator
link
fedilink
English
1
edit-2
1Y

That’s a great question… But I have no clue if its exposed or not. The thing is, apparently they fixed it in a way that it should, in theory, work out of the box.

HomeAssistant should be running on 8123 if I’m not mistaken.

I’ve tried [virtual adapter]:8123 (not at my PC atm, don’t know the op by heart sry) localhost:8123 and 127.0.0.1:8123

JoYo
link
fedilink
English
01Y

link the dockerfile

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 279 users / day
  • 589 users / week
  • 1.34K users / month
  • 4.55K users / 6 months
  • 1 subscriber
  • 3.47K Posts
  • 69.3K Comments
  • Modlog