Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

[BUG] docker-compose: otel-collector/prometheus/grafana take dynamic IPs from 10.10.10.0/24 and can grab 10.10.10.2, nostream fails with "Address already in use"

Offen Anfängerfreundlich
#929 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
83/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
docker-compose
Bereich
devops

Rechercherichtung

Beginne mit docker-compose.yml und prüfe die IPAM-Konfiguration des Standardnetzwerks zusammen mit den im Issue beschriebenen statischen Adressen. Lege den dynamischen Zuweisungsbereich außerhalb der reservierten Adressen fest, führe dann docker compose down und docker compose up -d aus und prüfe das nostream-Netzwerk; fertig ist die Aufgabe, wenn alle Dienste mit dynamischen Adressen außerhalb der statischen Zuweisungen starten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Describe the bug
docker-compose.yml pins nostream, nostream-db and nostream-cache to 10.10.10.2–10.10.10.4, but otel-collector, prometheus and grafana (added with the observability stack) take dynamic addresses from the same 10.10.10.0/24 pool. Docker hands out dynamic addresses from the bottom of the subnet, so whichever of them is created first grabs 10.10.10.2 and nostream then fails:

Error response from daemon: failed to set up container networking: Address already in use

otel-collector has no dependencies, so it is usually created before nostream; it also happens after a host reboot, when the daemon starts containers in arbitrary order.

To Reproduce

  1. docker compose down (network removed), then docker compose up -d.
  2. docker network inspect nostream → otel-collector=10.10.10.2/24; nostream stays in Created with the error above.

Expected behavior
Dynamic addresses never collide with the static ones.

System

  • OS: Ubuntu 22.04, Docker 29.9, compose v5.4
  • Version: 3.4.1

Fix (running in production)
Restrict dynamic allocation to a range outside the static addresses; subnet and gateway stay the same (10.10.10.1 is in the default trustedProxies):

networks:
  default:
    name: nostream
    ipam:
      driver: default
      config:
        - subnet: 10.10.10.0/24
          gateway: 10.10.10.1
          ip_range: 10.10.10.128/26

This also keeps .5 (docker-compose.local.yml) and .252/.253 (i2p/tor overlays) out of the dynamic pool. After this change: nostream=10.10.10.2, otel-collector=10.10.10.128, prometheus=10.10.10.129, grafana=10.10.10.130. Happy to send it as a PR, but PR creation on this repo is limited for me (see #927).

Vorherrschende Sprache
TypeScript
Sterne
829
Forks
234
Ø Merge
16 Std. 13 Min.
Gemergte PRs (30 T.)
74

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cameri/nostream

Alle Issues in cameri/nostream

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.