Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. ioBroker startet nicht im Hostnetwork im Docker Environment

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    ioBroker startet nicht im Hostnetwork im Docker Environment

    This topic has been deleted. Only users with topic management privileges can see it.
    • Sky Net
      Sky Net last edited by Sky Net

      Hallo allerseits,

      ich versuche nun seit Tagen den ioBroker im Hostnetwork (wegen Discovery von Geräten, wie z.b. die Logitech Harmony) zum Laufen zu kriegen. Leider ohne Erfolg.

      Wenn ich den ioBroker im Bridge Network laufen lasse, komme ich auf die Weboberfläche.

      Sobald ich auf das Hostnetwork wechsle, komme ich nicht mehr auf das WebUI. Das Log sieht für mein Verständnis sauber aus.

      Hat jemand ähnliches gehabt und weiß Rat?
      Vielen Dank im Voraus.

      Hier mal noch das Log (die Adapter hab ich installiert wo der ioBroker noch im Bridge network war).

      ------------------------------------------------------------,
      ---------------     2020-11-08 14:45:14      ---------------,
      ------------------------------------------------------------,
       ,
      ------------------------------------------------------------,
      -----       Welcome to your ioBroker-container!        -----,
      -----          Startupscript is now running.           -----,
      -----                Please be patient!                -----,
      ------------------------------------------------------------,
       ,
      ------------------------------------------------------------,
      -----              Debugging information               -----,
      -----                                                  -----,
      -----                      System                      -----,
      -----               arch:      armv7l                  -----,
      -----                                                  -----,
      -----                     Versions                     -----,
      -----               image:     v5.0.0                  -----,
      -----               node:      v12.19.0                -----,
      -----               npm:       6.14.8                  -----,
      -----                                                  -----,
      -----                       ENV                        -----,
      -----               ADMINPORT: 8081                    -----,
      -----               SETGID:    1000                    -----,
      -----               SETUID:    1000                    -----,
      ------------------------------------------------------------,
       ,
      ------------------------------------------------------------,
      -----         Step 1 of 5: Preparing container         -----,
      ------------------------------------------------------------,
       ,
      Nothing to do here.,
       ,
      ------------------------------------------------------------,
      -----   Step 2 of 5: Detecting ioBroker installation   -----,
      ------------------------------------------------------------,
       ,
      Existing installation of ioBroker detected in /opt/iobroker.,
       ,
      ------------------------------------------------------------,
      -----   Step 3 of 5: Checking ioBroker installation    -----,
      ------------------------------------------------------------,
       ,
      (Re)Setting folder permissions (This might take a while! Please be patient!)...,
      Done.,
       ,
      Fixing "sudo-bug" by replacing sudo in iobroker with gosu...,
      Done.,
       ,
      ------------------------------------------------------------,
      -----      Step 4 of 5: Applying special settings      -----,
      ------------------------------------------------------------,
       ,
      Some adapters have special requirements/ settings which can be activated by the use of environment variables.,
      For more information take a look at readme.md on Github!,
       ,
      ------------------------------------------------------------,
      -----          Step 5 of 5: ioBroker startup           -----,
      ------------------------------------------------------------,
       ,
      Starting ioBroker...,
       ,
      ================================== > LOG REDIRECT system.adapter.admin.0 => true [starting],
      host.iobroker check instance "system.adapter.admin.0" for host "iobroker",
      host.iobroker check instance "system.adapter.discovery.0" for host "iobroker",
      host.iobroker check instance "system.adapter.info.0" for host "iobroker",
      host.iobroker check instance "system.adapter.alexa2.0" for host "iobroker",
      host.iobroker check instance "system.adapter.dwd.0" for host "iobroker",
      host.iobroker check instance "system.adapter.daswetter.0" for host "iobroker",
      host.iobroker check instance "system.adapter.telegram.0" for host "iobroker",
      host.iobroker check instance "system.adapter.text2command.0" for host "iobroker",
      host.iobroker check instance "system.adapter.feiertage.0" for host "iobroker",
      host.iobroker check instance "system.adapter.harmony.0" for host "iobroker",
      
      UncleSam 1 Reply Last reply Reply Quote 0
      • UncleSam
        UncleSam Developer @Sky Net last edited by

        @Sky-Net Mit welcher URL greifst du denn auf den ioBroker zu im Fall von Host Network? Wie im anderen Fall?

        Sky Net 1 Reply Last reply Reply Quote 0
        • Sky Net
          Sky Net @UncleSam last edited by Sky Net

          @UncleSam

          http://10.0.4.6:8081

          Im Hostnetwork werden ja die ports einfach durchgereicht, die sonst als default im Image hintrlegt sind.

          Hier mal mein Befehl ums zu starten, hab auch die standardports schon geändert, ohne Erfolg:

          docker run -d --network host --name iobroker -v iobroker_data:/opt/iobroker buanet/iobroker -e "TZ=Europe/Berlin" -e "IOB_STATESDB_PORT=8900" -e "IOB_OBJECTSDB_PORT=8901" -e "IOB_ADMINPORT=8089"
          
          UncleSam 1 Reply Last reply Reply Quote 0
          • UncleSam
            UncleSam Developer @Sky Net last edited by UncleSam

            @Sky-Net sagte in ioBroker startet nicht im Hostnetwork im Docker Environment:

            Im Hostnetwork werden ja die ports einfach durchgereicht, die sonst als default im Image hintrlegt sind.

            OK, jetzt war ich etwas verwirrt zwischen Host und anderem Netzwerk.

            Aber: deine Annahme ist falsch: im Default Image sind keine Ports hinterlegt (das ist auch gut so), die muss man selber auf der Kommandozeile angeben (mit -p).

            Hier übrigens die Kommandozeile, die buanet vorschlägt: https://github.com/buanet/docker-iobroker#running-from-command-line

            Sky Net 1 Reply Last reply Reply Quote 0
            • Sky Net
              Sky Net @UncleSam last edited by

              @UncleSam

              mit -p tust nur ports mappen, also wenn du von extern nen anderen port wie intern haben willst z.B.
              aber auch diese Einstellungen braucht man nur im Falle dessen, wenn man kein Hostnetwork nimmt

              Sky Net 1 Reply Last reply Reply Quote 0
              • Sky Net
                Sky Net @Sky Net last edited by

                ok, habs nun ohne docker swarm hinbekommen...

                1 Reply Last reply Reply Quote 0
                • Z
                  zimbombo last edited by zimbombo

                  @sky-net wie hast du das Ganze denn gelöst bekommen. Ich habe aktuell das selbe Problem und kriege den Container im host Netzwerk einfach nicht gestartet...

                  Edit: Habs selbst zum laufen bekommen...

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hevilp @zimbombo last edited by

                    @zimbombo und wie hast du es geschafft?

                    Glasfaser 1 Reply Last reply Reply Quote 0
                    • Glasfaser
                      Glasfaser @hevilp last edited by Glasfaser

                      @hevilp

                      Welches Problem hast du denn !?

                      ( Der Thread ist von 2020 )

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate
                      FAQ Cloud / IOT
                      HowTo: Node.js-Update
                      HowTo: Backup/Restore
                      Downloads
                      BLOG

                      598
                      Online

                      31.9k
                      Users

                      80.2k
                      Topics

                      1.3m
                      Posts

                      docker host network webui iobroker notreachable
                      5
                      9
                      1716
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo