Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Inst via Docker Compose mit network=Host & Portänderung

    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

    Inst via Docker Compose mit network=Host & Portänderung

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      blackburn @Glasfaser last edited by

      @glasfaser die habe ich heute von 2.11 auf 2.16 hoch gepatched. ein downgrade kann ich morgen mal testen

      1 Reply Last reply Reply Quote 0
      • B
        blackburn @OliverIO last edited by

        @oliverio tatsache... das mal jetzt nicht, aber spätestens nach dem zweiten loop sieht es dann so aus. ich mach morgen noch mal einen cleanen test

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

          @oliverio sagte in Inst via Docker Compose mit network=Host & Portänderung:

          Die Angabe 0.0.0.0 weiß ich nicht ob das funktioniert.

          war nur eine Vorlage ... habe es vergessen zu erwähnen .!

          stand auch im link oben drin ( IP anpassen ) habe nur ein teil angepasst ..

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

            @glasfaser

            Wenn es eine Angabe für einen Server wäre wo er listen soll, wäre das schon eine gültige Angabe, nämlich ohne Einschränkung
            D gehts es ja um eine connect Angabe, das kann andere verwirren.
            Wenn es noch jemand anderes irgendwann liest wird er das jetzt auch finden. Alles gut.

            1 Reply Last reply Reply Quote 0
            • B
              blackburn @OliverIO last edited by

              @oliverio @Glasfaser Hi, ich hab jetzt folgendes alles getestet:

              • Portainer downgrade auf 2.15.1
              • ENVs ohne '
              • Version latest-v6 (hier komme ich auf andere Fehler, er erkennt nicht den default Wert von den DBS und setzt einen leeren Wert als Typ an und akzeptiert kein jsonl) und latest-v7

              Was funktiniert mit der latest-v7 ist der Start im bridge Networkmode, ohne irgendwelche ENV. Also würde ich vermuten, dass meine Toolchain nicht das Problem sein sollte (also Portainer, Docker, Docker-Compose, ...)

              Irgendwas in den ENV muss falsch sein, aber ich komm nicht drauf...
              Weiß einer ob die Reihenfolge wichtig ist?

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

                @blackburn sagte in Inst via Docker Compose mit network=Host & Portänderung:

                Irgendwas in den ENV muss falsch sein, aber ich komm nicht drauf...

                Wir auch nicht ...

                poste mal den aktuelle gesamten Compose und das aktuelle Log

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

                  @glasfaser

                  version: '2.4'
                  
                  services:
                    iobroker:
                      restart: always
                      image: buanet/iobroker:latest-v7
                      container_name: iobroker
                      hostname: iobroker
                      network_mode: host
                      volumes:
                        - /docker/etc-iobrokerdata:/opt/iobroker
                      environment:
                        - IOB_ADMINPORT=9003
                        - IOB_OBJECTSDB_PORT=9100
                        - IOB_STATESDB_PORT=9101
                      
                  

                  Beim Log hat sich nicht viel getan:

                   
                  --------------------------------------------------------------------------------
                  -------------------------     2023-01-20 19:28:08      -------------------------
                  --------------------------------------------------------------------------------
                  -----                                                                      -----
                  ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
                  ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
                  ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
                  ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
                  ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
                  ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
                  -----                                                                      -----
                  -----              Welcome to your ioBroker Docker container!              -----
                  -----                    Startupscript is now running!                     -----
                  -----                          Please be patient!                          -----
                  --------------------------------------------------------------------------------
                   
                  --------------------------------------------------------------------------------
                  -----                          System Information                          -----
                  -----                    arch:                armv7l                       -----
                  -----                    hostname:            iobroker                     -----
                  -----                                                                      -----
                  -----                          Version Information                         -----
                  -----                    image:               v7.2.0                       -----
                  -----                    build:               2023-01-12T23:45:21+00:00    -----
                  -----                    node:                v16.19.0                     -----
                  -----                    npm:                 8.19.3                       -----
                  -----                                                                      -----
                  -----                        Environment Variables                         -----
                  -----                    IOB_ADMINPORT:       9003                         -----
                  -----                    IOB_OBJECTSDB_PORT:  9100                         -----
                  -----                    IOB_STATESDB_PORT:   9101                         -----
                  -----                    SETGID:              1000                         -----
                  -----                    SETUID:              1000                         -----
                  --------------------------------------------------------------------------------
                   
                  --------------------------------------------------------------------------------
                  -----                  Step 1 of 5: Preparing container                   -----
                  --------------------------------------------------------------------------------
                   
                  Updating Linux packages on first run... 
                  dpkg-preconfigure: unable to re-open stdin: 
                  (Reading database ... 
                  (Reading database ... 5%
                  (Reading database ... 10%
                  (Reading database ... 15%
                  (Reading database ... 20%
                  (Reading database ... 25%
                  (Reading database ... 30%
                  (Reading database ... 35%
                  (Reading database ... 40%
                  (Reading database ... 45%
                  (Reading database ... 50%
                  (Reading database ... 55%
                  (Reading database ... 60%
                  (Reading database ... 65%
                  (Reading database ... 70%
                  (Reading database ... 75%
                  (Reading database ... 80%
                  (Reading database ... 85%
                  (Reading database ... 90%
                  (Reading database ... 95%
                  (Reading database ... 100%
                  (Reading database ... 29167 files and directories currently installed.)
                  Preparing to unpack .../sudo_1.9.5p2-3+deb11u1_armhf.deb ...
                  Unpacking sudo (1.9.5p2-3+deb11u1) over (1.9.5p2-3) ...
                  Setting up sudo (1.9.5p2-3+deb11u1) ...
                  invoke-rc.d: could not determine current runlevel
                  invoke-rc.d: policy-rc.d denied execution of restart.
                  Done.
                   
                  Registering maintenance script as command... Done.
                   
                  --------------------------------------------------------------------------------
                  -----             Step 2 of 5: Detecting ioBroker installation             -----
                  --------------------------------------------------------------------------------
                   
                  There is no data detected in /opt/iobroker.
                  Restoring initial ioBroker installation... Done.
                   
                  --------------------------------------------------------------------------------
                  -----             Step 3 of 5: Checking ioBroker installation              -----
                  --------------------------------------------------------------------------------
                   
                  (Re)setting permissions (This might take a while! Please be patient!)... Done.
                   
                  Fixing "sudo-bug" by replacing sudo with gosu... Done.
                   
                  There was a problem detecting the admin instance of your iobroker.
                  Make sure the ioBroker installation you use has an admin instance or start over with a fresh installation and restore your configuration.
                  For more details see https://docs.buanet.de/iobroker-docker-image/docs/#restore
                   
                  This Script will exit now.
                   
                  --------------------------------------------------------------------------------
                  -------------------------     2023-01-20 19:29:50      -------------------------
                  --------------------------------------------------------------------------------
                  -----                                                                      -----
                  ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
                  ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
                  ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
                  ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
                  ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
                  ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
                  -----                                                                      -----
                  -----              Welcome to your ioBroker Docker container!              -----
                  -----                    Startupscript is now running!                     -----
                  -----                          Please be patient!                          -----
                  --------------------------------------------------------------------------------
                   
                  --------------------------------------------------------------------------------
                  -----                          System Information                          -----
                  -----                    arch:                armv7l                       -----
                  -----                    hostname:            iobroker                     -----
                  -----                                                                      -----
                  -----                          Version Information                         -----
                  -----                    image:               v7.2.0                       -----
                  -----                    build:               2023-01-12T23:45:21+00:00    -----
                  -----                    node:                v16.19.0                     -----
                  -----                    npm:                 8.19.3                       -----
                  -----                                                                      -----
                  -----                        Environment Variables                         -----
                  -----                    IOB_ADMINPORT:       9003                         -----
                  -----                    IOB_OBJECTSDB_PORT:  9100                         -----
                  -----                    IOB_STATESDB_PORT:   9101                         -----
                  -----                    SETGID:              1000                         -----
                  -----                    SETUID:              1000                         -----
                  --------------------------------------------------------------------------------
                   
                  --------------------------------------------------------------------------------
                  -----                  Step 1 of 5: Preparing container                   -----
                  --------------------------------------------------------------------------------
                   
                  Updating Linux packages on first run... 
                  
                  

                  Was ich jetzt gleich mach ist, alle Container umziehen und versuchen den IOB im Host Network ohne Änderungen der Ports zu starten

                  EDIT:

                  Ohne ENV läuft es im Hostmode:

                  Compose:

                  version: '2.4'
                  
                  services:
                    iobroker:
                      restart: always
                      image: buanet/iobroker:latest-v7
                      container_name: iobroker
                      hostname: iobroker
                      network_mode: host
                      volumes:
                        - /docker/etc-iobrokerdata:/opt/iobroker
                  

                  Log:

                   
                  --------------------------------------------------------------------------------
                  -------------------------     2023-01-20 19:39:10      -------------------------
                  --------------------------------------------------------------------------------
                  -----                                                                      -----
                  ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
                  ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
                  ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
                  ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
                  ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
                  ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
                  -----                                                                      -----
                  -----              Welcome to your ioBroker Docker container!              -----
                  -----                    Startupscript is now running!                     -----
                  -----                          Please be patient!                          -----
                  --------------------------------------------------------------------------------
                   
                  --------------------------------------------------------------------------------
                  -----                          System Information                          -----
                  -----                    arch:                armv7l                       -----
                  -----                    hostname:            iobroker                     -----
                  -----                                                                      -----
                  -----                          Version Information                         -----
                  -----                    image:               v7.2.0                       -----
                  -----                    build:               2023-01-12T23:45:21+00:00    -----
                  -----                    node:                v16.19.0                     -----
                  -----                    npm:                 8.19.3                       -----
                  -----                                                                      -----
                  -----                        Environment Variables                         -----
                  -----                    SETGID:              1000                         -----
                  -----                    SETUID:              1000                         -----
                  --------------------------------------------------------------------------------
                   
                  --------------------------------------------------------------------------------
                  -----                  Step 1 of 5: Preparing container                   -----
                  --------------------------------------------------------------------------------
                   
                  Updating Linux packages on first run... 
                  dpkg-preconfigure: unable to re-open stdin: 
                  (Reading database ... 
                  (Reading database ... 5%
                  (Reading database ... 10%
                  (Reading database ... 15%
                  (Reading database ... 20%
                  (Reading database ... 25%
                  (Reading database ... 30%
                  (Reading database ... 35%
                  (Reading database ... 40%
                  (Reading database ... 45%
                  (Reading database ... 50%
                  (Reading database ... 55%
                  (Reading database ... 60%
                  (Reading database ... 65%
                  (Reading database ... 70%
                  (Reading database ... 75%
                  (Reading database ... 80%
                  (Reading database ... 85%
                  (Reading database ... 90%
                  (Reading database ... 95%
                  (Reading database ... 100%
                  (Reading database ... 29167 files and directories currently installed.)
                  Preparing to unpack .../sudo_1.9.5p2-3+deb11u1_armhf.deb ...
                  Unpacking sudo (1.9.5p2-3+deb11u1) over (1.9.5p2-3) ...
                  Setting up sudo (1.9.5p2-3+deb11u1) ...
                  invoke-rc.d: could not determine current runlevel
                  invoke-rc.d: policy-rc.d denied execution of restart.
                  Done.
                   
                  Registering maintenance script as command... Done.
                   
                  --------------------------------------------------------------------------------
                  -----             Step 2 of 5: Detecting ioBroker installation             -----
                  --------------------------------------------------------------------------------
                   
                  There is no data detected in /opt/iobroker.
                  Restoring initial ioBroker installation... Done.
                   
                  --------------------------------------------------------------------------------
                  -----             Step 3 of 5: Checking ioBroker installation              -----
                  --------------------------------------------------------------------------------
                   
                  (Re)setting permissions (This might take a while! Please be patient!)... Done.
                   
                  Fixing "sudo-bug" by replacing sudo with gosu... Done.
                   
                  Hostname in ioBroker does not match the hostname of this container.
                  Updating hostname to iobroker... The host for instance "system.adapter.admin.0" was changed from "buildkitsandbox" to "iobroker".
                  The host for instance "system.adapter.discovery.0" was changed from "buildkitsandbox" to "iobroker".
                  The host for instance "system.adapter.backitup.0" was changed from "buildkitsandbox" to "iobroker".
                  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 see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/).
                   
                  --------------------------------------------------------------------------------
                  -----                    Step 5 of 5: ioBroker startup                     -----
                  --------------------------------------------------------------------------------
                   
                  Starting ioBroker... 
                   
                  ##### #### ### ## # iobroker.js-controller log output # ## ### #### #####
                  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.backitup.0" for host "iobroker"
                  object system.meta.uuid created: debb4421-84e2-46bc-958c-0f39a050c98a
                  ================================== > LOG REDIRECT system.adapter.admin.0 => true [system.adapter.admin.0.logging]
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser last edited by

                    @blackburn sagte in Inst via Docker Compose mit network=Host & Portänderung:

                    Ohne ENV läuft es im Hostmode:

                    Puhh ..
                    ich weiß auch gerade nicht weiter ...
                    eigentlich sollte die Ports per ENV genommen werden .

                    @andre kannst du vielleicht hier weiterhelfen !?

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

                      @glasfaser Die ENVs für Objects- und States-DB sind ausschließlich für Multihost und Redis-Anbindung gedacht und nicht um die DB Ports vom ioBroker zu verbiegen. Das ist derzeit weder unterstützt noch getestet. Tuts vielleicht auch ein MACVLAN anstelle des Hostmodes? Andernfalls schlage ich vor die Ports frei zu machen.
                      Änderung des Admin Ports sollte funktionieren.

                      MfG,
                      André

                      1 Reply Last reply Reply Quote 1
                      • B
                        blackburn last edited by

                        @andre Danke für die Info!

                        Ja ich werden dann wohl die Ports frei machen bzw mal gucken ob ich das VLAN einrichte.
                        @Glasfaser und @OliverIO danke für eure Hilfe und eure Geduld!

                        OliverIO 1 Reply Last reply Reply Quote 0
                        • OliverIO
                          OliverIO @blackburn last edited by OliverIO

                          @blackburn
                          Ich würde dann macvlan machen. Dann hast für iobroker eine eigene ip und alles ist ok wie Standard Installation.
                          Und du musst keine Porta frei Räumen
                          So hab ich das auch und will es nicht mehr anders

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          729
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          docker portainer host ports
                          4
                          22
                          1472
                          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