Unable to access after docker initialization in osx

Hi

I’m trying to install home assistant with docker in my mac.

My osx version is Monterey 12.1

I were installed docker container with the following command:

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -e TZ=Europe/Istanbul \
  -v /Users/murat/Development/homeassistant:/config \
  --network=host \
  -p 8123:8123 \
  ghcr.io/home-assistant/home-assistant:stable

But I couldn’t access 8123 port even in my localhost (I added -p 8123:8123 line to redirect my localhost 8123 to container)

I’m not using any firewall.

I also checked the docker logs and it says it’s running smoothly as like this:

homeassistant
ghcr.io/home-assistant/home-assistant:stable
RUNNING

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts...

[cont-init.d] done.

[services.d] starting services

[services.d] done.

How can I access to web panel?

The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.

Using only -p 8123:8123 should work, but hardly any devices will be detected by HA.

Hello @m0wlheld thanks for prompt response.

Is there anyway to work home assistant on osx or windows?

Run this command:

docker run -d \
   --name homeassistant \
   --privileged \
   --restart=unless-stopped \
   -e TZ= MY_TIME_ZONE \
   -v /PATH_TO_YOUR_CONFIG:/config \
   -p 8123:8123 \
   ghcr.io/home-assistant/home-assistant:stable

Note that “–network=host” is not present and that “-p 8123:8123” has been added