Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. Influx docker zugriff auf oberfläche klappt nicht [gelöst]

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Influx docker zugriff auf oberfläche klappt nicht [gelöst]

    This topic has been deleted. Only users with topic management privileges can see it.
    • Marc Berg
      Marc Berg Most Active @kaile45 last edited by Marc Berg

      @kaile45 sagte in Influx innerhalb docker zugriff auf oberfläche klappt nicht:

      influxdb

      zeig' mal den Output von

      docker port influx
      
      K 1 Reply Last reply Reply Quote 0
      • K
        kaile45 @Marc Berg last edited by

        @marc-berg komischerweise hat docker port nicht funktioniert, deshalb habe ich es mit docker inspect influx versucht, da es ja ähnliche ergebnisse anzeigt:

        root@acs-test:~# docker inspect influx
        [
            {
                "Id": "af2d3ca385c1418d65c297e9c91c8d2c1f790707cb8180eddc14f0d8ddf1d954",
                "Created": "2023-06-20T08:05:29.576736748Z",
                "Path": "/entrypoint.sh",
                "Args": [
                    "influxd"
                ],
                "State": {
                    "Status": "running",
                    "Running": true,
                    "Paused": false,
                    "Restarting": false,
                    "OOMKilled": false,
                    "Dead": false,
                    "Pid": 3310128,
                    "ExitCode": 0,
                    "Error": "",
                    "StartedAt": "2023-06-20T08:05:31.100349629Z",
                    "FinishedAt": "0001-01-01T00:00:00Z"
                },
                "Image": "sha256:0f18cacff1c509a29f5fdfe486023182743bda556c5810b07bb7fbb170d7aa71",
                "ResolvConfPath": "/var/snap/docker/common/var-lib-docker/containers/af2d3ca385c1418d65c297e9c91c8d2c1f790707cb8180eddc14f0d8ddf1d954/resolv.conf",
                "HostnamePath": "/var/snap/docker/common/var-lib-docker/containers/af2d3ca385c1418d65c297e9c91c8d2c1f790707cb8180eddc14f0d8ddf1d954/hostname",
                "HostsPath": "/var/snap/docker/common/var-lib-docker/containers/af2d3ca385c1418d65c297e9c91c8d2c1f790707cb8180eddc14f0d8ddf1d954/hosts",
                "LogPath": "/var/snap/docker/common/var-lib-docker/containers/af2d3ca385c1418d65c297e9c91c8d2c1f790707cb8180eddc14f0d8ddf1d954/af2d3ca385c1418d65c297e9c91c8d2c1f790707cb8180eddc14f0d8ddf1d954-json.log",
                "Name": "/influx",
                "RestartCount": 0,
                "Driver": "overlay2",
                "Platform": "linux",
                "MountLabel": "",
                "ProcessLabel": "",
                "AppArmorProfile": "docker-default",
                "ExecIDs": [
                    "89b4bb98bed978ceac6e04bef7edecc2a1bef0da7e43d3c15805ff6eeaba5bcd",
                    "d5608d0837606412d0575c9ca49e3df862cde41197d0a1929b43b45d67194e50"
                ],
                "HostConfig": {
                    "Binds": null,
                    "ContainerIDFile": "",
                    "LogConfig": {
                        "Type": "json-file",
                        "Config": {}
                    },
                    "NetworkMode": "default",
                    "PortBindings": {},
                    "RestartPolicy": {
                        "Name": "no",
                        "MaximumRetryCount": 0
                    },
                    "AutoRemove": false,
                    "VolumeDriver": "",
                    "VolumesFrom": null,
                    "CapAdd": null,
                    "CapDrop": null,
                    "CgroupnsMode": "private",
                    "Dns": [],
                    "DnsOptions": [],
                    "DnsSearch": [],
                    "ExtraHosts": null,
                    "GroupAdd": null,
                    "IpcMode": "private",
                    "Cgroup": "",
                    "Links": null,
                    "OomScoreAdj": 0,
                    "PidMode": "",
                    "Privileged": false,
                    "PublishAllPorts": false,
                    "ReadonlyRootfs": false,
                    "SecurityOpt": null,
                    "UTSMode": "",
                    "UsernsMode": "",
                    "ShmSize": 67108864,
                    "Runtime": "runc",
                    "ConsoleSize": [
                        0,
                        0
                    ],
                    "Isolation": "",
                    "CpuShares": 0,
                    "Memory": 0,
                    "NanoCpus": 0,
                    "CgroupParent": "",
                    "BlkioWeight": 0,
                    "BlkioWeightDevice": [],
                    "BlkioDeviceReadBps": null,
                    "BlkioDeviceWriteBps": null,
                    "BlkioDeviceReadIOps": null,
                    "BlkioDeviceWriteIOps": null,
                    "CpuPeriod": 0,
                    "CpuQuota": 0,
                    "CpuRealtimePeriod": 0,
                    "CpuRealtimeRuntime": 0,
                    "CpusetCpus": "",
                    "CpusetMems": "",
                    "Devices": [],
                    "DeviceCgroupRules": null,
                    "DeviceRequests": null,
                    "KernelMemory": 0,
                    "KernelMemoryTCP": 0,
                    "MemoryReservation": 0,
                    "MemorySwap": 0,
                    "MemorySwappiness": null,
                    "OomKillDisable": null,
                    "PidsLimit": null,
                    "Ulimits": null,
                    "CpuCount": 0,
                    "CpuPercent": 0,
                    "IOMaximumIOps": 0,
                    "IOMaximumBandwidth": 0,
                    "MaskedPaths": [
                        "/proc/asound",
                        "/proc/acpi",
                        "/proc/kcore",
                        "/proc/keys",
                        "/proc/latency_stats",
                        "/proc/timer_list",
                        "/proc/timer_stats",
                        "/proc/sched_debug",
                        "/proc/scsi",
                        "/sys/firmware"
                    ],
                    "ReadonlyPaths": [
                        "/proc/bus",
                        "/proc/fs",
                        "/proc/irq",
                        "/proc/sys",
                        "/proc/sysrq-trigger"
                    ]
                },
                "GraphDriver": {
                    "Data": {
                        "LowerDir": "/var/snap/docker/common/var-lib-docker/overlay2/a3752ce6e30639e3fc084769a2f9734684d7156d745289a2259919dc931c4eb0-init/diff:/var/snap/docker/common/var-lib-docker/overlay2/dec403902f01b410ad4e2ba58b5f8725432994b8b75be1dcdef450fc379e37bd/diff:/var/snap/docker/common/var-lib-docker/overlay2/6f68c953e8e0d74ce6b9bc13f717c9541887e2702584d2d45845f46b6b0e3f54/diff:/var/snap/docker/common/var-lib-docker/overlay2/2e5faafde175c4d26d0a7ff278368a1a3122cf00dd46cdb6df492ac1fdaf3206/diff:/var/snap/docker/common/var-lib-docker/overlay2/942ae6d59d36336fac535d9270bed3487f600a86bec42aac536ea24de1332889/diff:/var/snap/docker/common/var-lib-docker/overlay2/9add12c560b34615d183f8945e65586fcd7b301c9af7de94840ad55efb8c4388/diff:/var/snap/docker/common/var-lib-docker/overlay2/11f83e215c3a612b221d017a9fa6574aac74a766544b752e7bd6f86a23839e22/diff:/var/snap/docker/common/var-lib-docker/overlay2/bd249fd05c66938d7a807ba42eaa7a55e81c62644026e309ac47999bc9d02e58/diff:/var/snap/docker/common/var-lib-docker/overlay2/c5bee4ea56f8c2627f07bf485dfb9c4f4c808f16520af601febf42b916ea132f/diff:/var/snap/docker/common/var-lib-docker/overlay2/38d9d1e95636ae15898a639df5ba800e980c8bd401fd8702a91a9ddbc3a77158/diff:/var/snap/docker/common/var-lib-docker/overlay2/a88cf96fcb8f4d5115f08d575a24f27bba7cacf4cef8811bf8ca38b8549e16bb/diff",
                        "MergedDir": "/var/snap/docker/common/var-lib-docker/overlay2/a3752ce6e30639e3fc084769a2f9734684d7156d745289a2259919dc931c4eb0/merged",
                        "UpperDir": "/var/snap/docker/common/var-lib-docker/overlay2/a3752ce6e30639e3fc084769a2f9734684d7156d745289a2259919dc931c4eb0/diff",
                        "WorkDir": "/var/snap/docker/common/var-lib-docker/overlay2/a3752ce6e30639e3fc084769a2f9734684d7156d745289a2259919dc931c4eb0/work"
                    },
                    "Name": "overlay2"
                },
                "Mounts": [
                    {
                        "Type": "volume",
                        "Name": "be2b8c485e6ea583e31d7b34c8b75c88e699de1ecbcadd092303a6201387fd1a",
                        "Source": "/var/snap/docker/common/var-lib-docker/volumes/be2b8c485e6ea583e31d7b34c8b75c88e699de1ecbcadd092303a6201387fd1a/_data",
                        "Destination": "/etc/influxdb2",
                        "Driver": "local",
                        "Mode": "",
                        "RW": true,
                        "Propagation": ""
                    },
                    {
                        "Type": "volume",
                        "Name": "bb44a85746e37a5d873b2a22b19bcb5cef6c111ec3221435325c47c9f6428774",
                        "Source": "/var/snap/docker/common/var-lib-docker/volumes/bb44a85746e37a5d873b2a22b19bcb5cef6c111ec3221435325c47c9f6428774/_data",
                        "Destination": "/var/lib/influxdb2",
                        "Driver": "local",
                        "Mode": "",
                        "RW": true,
                        "Propagation": ""
                    }
                ],
                "Config": {
                    "Hostname": "af2d3ca385c1",
                    "Domainname": "",
                    "User": "",
                    "AttachStdin": false,
                    "AttachStdout": false,
                    "AttachStderr": false,
                    "ExposedPorts": {
                        "8086/tcp": {}
                    },
                    "Tty": false,
                    "OpenStdin": false,
                    "StdinOnce": false,
                    "Env": [
                        "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                        "GOSU_VER=1.12",
                        "INFLUXDB_VERSION=2.7.1",
                        "INFLUX_CLI_VERSION=2.7.3",
                        "INFLUX_CONFIGS_PATH=/etc/influxdb2/influx-configs",
                        "INFLUXD_INIT_PORT=9999",
                        "INFLUXD_INIT_PING_ATTEMPTS=600",
                        "DOCKER_INFLUXDB_INIT_CLI_CONFIG_NAME=default"
                    ],
                    "Cmd": [
                        "influxd"
                    ],
                    "Image": "influxdb",
                    "Volumes": {
                        "/etc/influxdb2": {},
                        "/var/lib/influxdb2": {}
                    },
                    "WorkingDir": "",
                    "Entrypoint": [
                        "/entrypoint.sh"
                    ],
                    "OnBuild": null,
                    "Labels": {}
                },
                "NetworkSettings": {
                    "Bridge": "",
                    "SandboxID": "957311b7609638314a2cbf42b2d804a3ad77d471523983d0a298281e7e96337f",
                    "HairpinMode": false,
                    "LinkLocalIPv6Address": "",
                    "LinkLocalIPv6PrefixLen": 0,
                    "Ports": {
                        "8086/tcp": null
                    },
                    "SandboxKey": "/run/snap.docker/netns/957311b76096",
                    "SecondaryIPAddresses": null,
                    "SecondaryIPv6Addresses": null,
                    "EndpointID": "e37970bf5bc316d4444ed76a519005f085d2d14f400f2da58fedfd6b757ea46a",
                    "Gateway": "172.17.0.1",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "MacAddress": "02:42:ac:11:00:02",
                    "Networks": {
                        "bridge": {
                            "IPAMConfig": null,
                            "Links": null,
                            "Aliases": null,
                            "NetworkID": "21c66e98f2d481512e37b8c6313aafcd2a0fc313e013d406440e6bcd544bc013",
                            "EndpointID": "e37970bf5bc316d4444ed76a519005f085d2d14f400f2da58fedfd6b757ea46a",
                            "Gateway": "172.17.0.1",
                            "IPAddress": "172.17.0.2",
                            "IPPrefixLen": 16,
                            "IPv6Gateway": "",
                            "GlobalIPv6Address": "",
                            "GlobalIPv6PrefixLen": 0,
                            "MacAddress": "02:42:ac:11:00:02",
                            "DriverOpts": null
                        }
                    }
                }
            }
        ]
        
        

        hilft das weiter?

        Marc Berg 1 Reply Last reply Reply Quote 0
        • Marc Berg
          Marc Berg Most Active @kaile45 last edited by

          @kaile45 sagte in Influx innerhalb docker zugriff auf oberfläche klappt nicht:

          komischerweise hat docker port nicht funktioniert

          Was heißt "nicht funktioniert"? Wenn der Befehl keine Ergebnisse liefern sollte, dann hast du kein Port-Mapping für den Port 8086 aktiv.

          K 1 Reply Last reply Reply Quote 0
          • K
            kaile45 @Marc Berg last edited by

            @marc-berg achso, er hat tatsächlich einfach keine Ausgabe geliefert. Kannst du das Port-Mapping etwas näher erklären und was bei mir der Fehler ist?

            Marc Berg 1 Reply Last reply Reply Quote 0
            • Marc Berg
              Marc Berg Most Active @kaile45 last edited by

              @kaile45 sagte in Influx innerhalb docker zugriff auf oberfläche klappt nicht:

              Kannst du das Port-Mapping etwas näher erklären und was bei mir der Fehler ist?

              Gegenfrage: Wie legst Du die Container an?

              K 1 Reply Last reply Reply Quote 0
              • K
                kaile45 @Marc Berg last edited by

                @marc-berg ich glaube ich weiss was du meinst, beim erstellen des influx containers habe ich nicht die portzuweisung des containers durchgeführt, ist das die Ursache? Ich dachte eben wenn Influx installiert wurde und es auch läuft kann man automatisch auf die Oberfläche zugreifen..

                Marc Berg 1 Reply Last reply Reply Quote 0
                • Marc Berg
                  Marc Berg Most Active @kaile45 last edited by

                  @kaile45 sagte in Influx innerhalb docker zugriff auf oberfläche klappt nicht:

                  Ich dachte eben wenn Influx installiert wurde und es auch läuft kann man automatisch auf die Oberfläche zugreifen

                  Nö. Die Portzuweisung musst du bei einem Bridge-Netzwerk in jedem Fall durchführen. Kannst du denn auf den iobroker-Container zugreifen?

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    kaile45 @Marc Berg last edited by

                    @marc-berg ja habe zugriff darauf, also lag ich mit meiner Vermutung vorhin richtig?

                    Marc Berg 1 Reply Last reply Reply Quote 0
                    • Marc Berg
                      Marc Berg Most Active @kaile45 last edited by Marc Berg

                      @kaile45 sagte in Influx innerhalb docker zugriff auf oberfläche klappt nicht:

                      @marc-berg ja habe zugriff darauf, also lag ich mit meiner Vermutung vorhin richtig?

                      Deswegen ja meine Frage, wie du die Container angelegt hast. Ohne diese Info könnte ich jetzt was vermuten, mache ich aber nicht.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kaile45 @Marc Berg last edited by

                        @marc-berg so habe ich den influx container erstellt:

                        docker run -d --name influx influxdb
                        
                        

                        den grafana ebenso.

                        Marc Berg 1 Reply Last reply Reply Quote 0
                        • Marc Berg
                          Marc Berg Most Active @kaile45 last edited by

                          @kaile45 sagte in Influx innerhalb docker zugriff auf oberfläche klappt nicht:

                          docker run -d --name influx influxdb

                          ja, da fehlt mindestens das Portmapping, das du so erreichst

                          docker run -d -p 8086:8086 --name influx influxdb
                          

                          Aber ich würde dir empfehlen, dich mal mit ein paar Docker Grundlagen zu befassen. Zum einen würde ich nicht das default-Bridge Netzwerk einsetzen und zum anderen die beiden Verzeichnisse "/var/lib/influxdb2" und "/etc/influxdb2" mappen (Parameter "-v"). Sonst sind deine Daten mal schnell verschwunden.

                          K 1 Reply Last reply Reply Quote 1
                          • K
                            kaile45 @Marc Berg last edited by

                            @marc-berg Alles klar. Dann werde ich das so anwenden und dann allgemein genauer anschauen. Danke erstmal für deine Hilfe!

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            674
                            Online

                            31.7k
                            Users

                            79.7k
                            Topics

                            1.3m
                            Posts

                            4
                            17
                            833
                            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