Docker not activating ports

I have a barebone with Debian 9, and I follow the official installation notes from home assistant with docker.
If a do a “docker ps” command, I see the running docker of home assistant, but without any port exposed, and so I can’t access wui. Where can I find instructions to do that you tell me with docker compose?, thank you very much.

If you are using --network-mode=host as per the documentation, there will be no port displayed. This is normal and working just fine.

You don’t need to do it.

Are you running Home Assistant in Docker, or did you install HASSIO in Docker? Big difference here.

if u look at Docker-Compose github issues page, there is some thing wrong with the network_mode option. I have the same issue, the “option network_mode: host” doenst work… need to explicit:

ports:
      - 8123:8123

Docker compose network mode has been working fine for me for over 2 years… Still working as of yesterday when I ran some updates

for me too when i was running ubuntu server, but when i migrate too centos 7, I discovered this issue

See this:

I’m not sure what that link is supposed to tell me…seems they got it working just fine, and it was likely related to their environment…

I use docker compose on lots of machines…network mode host works on all of them. Not sure what to tell you, but they range from Ubuntu 16.04, 18.04, Alpine 3.8/9 etc…

1 Like

Hello!! I’m glad I found this thread. I’m struggling with OP’s scenario. I’m new to containers so please forgive any mistake or misconception that I may make or depart from.

This is what portainer displays on my end. I don’t see any port exposed, but after what I read in this thread, it looks like it should be expected.

If you are using --network-mode=host as per the documentation, there will be no port displayed. This is normal and working just fine.

Excuse me if I ask this question, but who do I know if I’m running home assistant using "–network-mode=host "?

this is what portainer displays:

I can’t access home assistant on port 8123. It is a clean install. If I connect to home assistant and check the logs, this is what I see (I know it looks bad):


s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening

[s6-finish] sending all processes the TERM signal.

[s6-finish] sending all processes the KILL signal and exiting.

Also, If I stop all the containers including home assistant and launch the supervisor, they all come up except home assistant

any help would be most appreciated @flamingm0e

Thanks in advance,

Hi again,

one additional comment. When I run ha supervisor logs, this is what I see:

marc@marc-NUC8i5BEH:~$ sudo ha supervisor logs
[sudo] password for marc: 
[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] udev.sh: executing... 
[16:45:09] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:45:09] INFO: Starting local supervisor watchdog...
20-12-05 16:45:10 INFO (MainThread) [__main__] Initializing Supervisor setup
20-12-05 16:45:10 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry
20-12-05 16:45:10 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: intel-nuc
20-12-05 16:45:10 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/amd64-hassio-supervisor with version 2020.12.6
20-12-05 16:45:10 INFO (SyncWorker_0) [supervisor.docker.supervisor] Connecting Supervisor to hassio-network
20-12-05 16:45:10 INFO (SyncWorker_0) [supervisor.docker.interface] Cleanup images: ['homeassistant/amd64-hassio-supervisor:2020.12.2']
20-12-05 16:45:10 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.INITIALIZE
20-12-05 16:45:10 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
20-12-05 16:45:10 INFO (MainThread) [__main__] Setting up Supervisor
20-12-05 16:45:10 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2
20-12-05 16:45:16 WARNING (MainThread) [supervisor.dbus.rauc] Host has no rauc support. OTA updates have been disabled.
20-12-05 16:45:16 INFO (MainThread) [supervisor.host.info] Updating local host information
20-12-05 16:45:16 INFO (MainThread) [supervisor.host.services] Updating service information
20-12-05 16:45:16 INFO (MainThread) [supervisor.host.network] Updating local network information
20-12-05 16:45:17 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
20-12-05 16:45:17 INFO (MainThread) [supervisor.host] Host information reload completed
20-12-05 16:45:17 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
20-12-05 16:45:17 INFO (MainThread) [supervisor.host.services] Reloading local service hassio-apparmor.service
20-12-05 16:45:17 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-dns with version 2020.11.0
20-12-05 16:45:17 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-12-05 16:45:17 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-audio with version 17
20-12-05 16:45:17 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-cli with version 2020.11.1
20-12-05 16:45:17 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-observer with version 2020.10.1
20-12-05 16:45:17 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/amd64-hassio-multicast with version 3
20-12-05 16:45:17 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
20-12-05 16:45:17 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/intel-nuc-homeassistant with version 0.118.4
20-12-05 16:45:17 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 1 Home Assistant secrets
20-12-05 16:45:17 INFO (MainThread) [supervisor.hassos] No Home Assistant Operating System found
20-12-05 16:45:17 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
20-12-05 16:45:17 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
20-12-05 16:45:17 INFO (MainThread) [supervisor.store] Loading add-ons from store: 66 all - 66 new - 0 remove
20-12-05 16:45:17 INFO (MainThread) [supervisor.addons] Found 0 installed add-ons
20-12-05 16:45:17 INFO (MainThread) [supervisor.snapshots] Found 0 snapshot files
20-12-05 16:45:17 INFO (MainThread) [supervisor.discovery] Loaded 0 messages
20-12-05 16:45:17 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
20-12-05 16:45:17 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
20-12-05 16:45:17 INFO (MainThread) [supervisor.resolution.check] System checks complete
20-12-05 16:45:17 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
20-12-05 16:45:17 WARNING (MainThread) [supervisor.resolution.evaluations.base] Detected unsupported OS: Ubuntu 20.04.1 LTS (more-info: https://www.home-assistant.io/more-info/unsupported/os)
20-12-05 16:45:17 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
20-12-05 16:45:17 INFO (MainThread) [__main__] Running Supervisor
20-12-05 16:45:17 WARNING (MainThread) [supervisor.core] System running in a unsupported environment!
20-12-05 16:45:17 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
20-12-05 16:45:17 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' starting 0 add-ons
20-12-05 16:45:17 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' starting 0 add-ons
20-12-05 16:45:17 INFO (MainThread) [supervisor.core] Start Home Assistant Core
20-12-05 16:45:17 INFO (SyncWorker_1) [supervisor.docker.interface] Starting homeassistant
20-12-05 16:45:17 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready

I really don’t like this

20-12-05 16:45:17 WARNING (MainThread) [supervisor.resolution.evaluations.base] Detected unsupported OS: Ubuntu 20.04.1 LTS (more-info: https://www.home-assistant.io/more-info/unsupported/os)

I knew already that Ubuntu is not a OS of choice but I’ve seen lots of people using it. I really don’t have a problem ditching it and starting from scratch with Debian.