Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Adapter nutzen Docker interne IP 172.17.0.2

    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

    SOLVED Adapter nutzen Docker interne IP 172.17.0.2

    This topic has been deleted. Only users with topic management privileges can see it.
    • arteck
      arteck Developer Most Active @tim tim last edited by

      @tim-tim welche alexa anmelde seite?

      tim tim 1 Reply Last reply Reply Quote 0
      • tim tim
        tim tim last edited by

        Okay es wurde gelöst.

        Die Reihenfolge der Parameter sind wichtig.

        Das "--network host" musste nach vorne und schon klappte es:

        sudo docker run -p 8081:8081 --name iobroker --network host -v iobrokerdata:/opt/iobroker buanet/iobroker:latest

        1 Reply Last reply Reply Quote 0
        • tim tim
          tim tim @arteck last edited by

          @arteck

          765e5279-c26e-4bea-97ab-28ebe9aa202d-image.png

          Klicke ich da auf "sich einmal in Ihrem Amazon-Konto anmelden" öffnet sich ein neuer Tab mit URL: http://172.17.0.2:43603/

          Gleiches passiert wenn ich beim Tuya Adapter den Proxy starte:
          d4737a95-0118-43a8-8011-e4d5dc2d8d22-image.png

          Auch hinter dem Proxy verbirgt sich die 172er IP die ich mit dem Handy natürlich nicht erreichen kann.

          Meine Frage wäre daher, ob eher was an den allgemeinen Einstellungen im Admin0 falsch ist.
          Müsste da nicht irgendwo die 192.168.2.114 mit Eth0 angezeigt werden?

          Knallochse 1 Reply Last reply Reply Quote 0
          • Knallochse
            Knallochse @tim tim last edited by

            @tim-tim was steht in der Alexa Instanz unter Proxy-Einstellungen?

            tim tim 1 Reply Last reply Reply Quote 0
            • tim tim
              tim tim @Knallochse last edited by

              @Knallochse

              4b50494e-32fe-4268-bcb0-30a9ac7ee685-image.png

              Knallochse 1 Reply Last reply Reply Quote 0
              • Knallochse
                Knallochse @tim tim last edited by

                @tim-tim Sieht bei mir so aus.
                D3C2623E-60FA-40FF-8563-2551AC2521C1.png

                Mein Docker läuft im Host Modus

                tim tim 1 Reply Last reply Reply Quote 0
                • tim tim
                  tim tim @Knallochse last edited by

                  @Knallochse

                  ja genau das ist das Problem.
                  Das hier bei dir die normale IP Adresse vom Netzwerk als Standard gesetzt ist und bei mir die Docker interne IP genutzt wird und ich somit da nicht drauf komme.

                  Siehe mein erster Post im Admin0 Bereich:
                  [IPv4] 172.17.0.2 eth0

                  😕 sehr komisch

                  tim tim 1 Reply Last reply Reply Quote 0
                  • tim tim
                    tim tim @tim tim last edited by

                    habe gerade nochmal neu gestartet mit:

                    sudo docker run -p 8081:8081 --name iobroker -v iobrokerdata:/opt/iobroker buanet/iobroker:latest --network host

                    also mit network host Befehl, allerdings keine Veränderung

                    1 Reply Last reply Reply Quote 0
                    • AlCalzone
                      AlCalzone Developer @tim tim last edited by

                      @tim-tim sagte in Adapter nutzen Docker interne IP 172.17.0.2:

                      Will ich jetzt allerdings zb bei Alexa die Anmelde-Seite aufrufen, öffnet sich ein neuer Tab mit der URL:
                      http://172.17.0.2:46429/
                      Da kommt man natürlich nicht drauf.
                      Sollte ich nicht viel eher auf die 192.168.2.114:46429 kommen?

                      @apollon77

                      apollon77 1 Reply Last reply Reply Quote 0
                      • Stefan Glück
                        Stefan Glück last edited by

                        hallo,

                        ich denke du musst den Container als Host starten.
                        und dann darf man die Ports nicht angeben:

                        sudo docker run --net=host --name iobroker -v iobrokerdata:/opt/iobroker buanet/iobroker:latest

                        ich bin mir nicht ganz sicher ob das mit run auch so fuktioniert, denke aber schon.
                        ich erstelle den docker immer mit create und mache dann ein docker start

                        1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 @AlCalzone last edited by

                          @AlCalzone In den EInstellungen kannst Du port und IP angeben die "von aussen" tut. musst du im Docker dann freigeben

                          tim tim 1 Reply Last reply Reply Quote 0
                          • tim tim
                            tim tim @apollon77 last edited by

                            @apollon77

                            kannst du mir sagen wie ich das genau mache?

                            Besten Dank

                            apollon77 1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @tim tim last edited by

                              @tim-tim Isch nix Docker, Sorry ... es gibt einige Docker Threads hier im Forum, frag doch mal dort oder schau wer da aktiv ist und frag ihn/mentione Ihr hier

                              1 Reply Last reply Reply Quote 0
                              • tim tim
                                tim tim last edited by

                                Okay es wurde gelöst.

                                Die Reihenfolge der Parameter sind wichtig.

                                Das "--network host" musste nach vorne und schon klappte es:

                                sudo docker run -p 8081:8081 --name iobroker --network host -v iobrokerdata:/opt/iobroker buanet/iobroker:latest

                                1 Reply Last reply Reply Quote 0
                                • carsten04
                                  carsten04 Developer last edited by carsten04

                                  Bei --network host findet kein Mapping der Ports statt, von daher kannst Du -p 8081:8081 auch weglassen.

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  918
                                  Online

                                  31.9k
                                  Users

                                  80.1k
                                  Topics

                                  1.3m
                                  Posts

                                  docker
                                  7
                                  17
                                  1703
                                  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