Error connection refused for docker installation

It seems like I’m getting error connection refused trying to access the web ui for the first time.
I’ve put the container log down the bottom, there doesn’t seem to be any errors. The volume has successfully created for config and contains files etc. Just refuses connection to http://localhost:8123/

I used the below docker command to create the container:

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -p 8123:8123 \
  -e TZ="Australia/Brisbane" \
  -v homeassistant_config:/config \
  --network=host \
  ghcr.io/home-assistant/home-assistant:stable

2023-04-26 18:57:00 s6-rc: info: service s6rc-oneshot-runner: starting
2023-04-26 18:57:00 s6-rc: info: service s6rc-oneshot-runner successfully started
2023-04-26 18:57:00 s6-rc: info: service fix-attrs: starting
2023-04-26 18:57:00 s6-rc: info: service fix-attrs successfully started
2023-04-26 18:57:00 s6-rc: info: service legacy-cont-init: starting
2023-04-26 18:57:00 s6-rc: info: service legacy-cont-init successfully started
2023-04-26 18:57:00 s6-rc: info: service legacy-services: starting
2023-04-26 18:57:00 services-up: info: copying legacy longrun home-assistant (no readiness notification)
2023-04-26 18:57:00 s6-rc: info: service legacy-services successfully started

Are you making the web request on the same machine that the docker container is running on?

If not, use http://DOCKER_HOST_IP:8123/ instead.

Also be aware that a first-time installation may take quite a while before the web interface becomes available.

You should remove -p 8123:8123 \