[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"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 83/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- docker-compose
- 領域
- devops
調査の方向性
docker-compose.ymlから始めて、issueに記載された静的アドレスと合わせて、デフォルトネットワークのIPAM設定を確認します。動的割り当て範囲を予約済みアドレスの範囲外に設定し、その後 docker compose down と docker compose up -d を実行して nostream ネットワークを確認します。すべてのサービスが静的割り当ての範囲外の動的アドレスで起動すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
docker compose down(network removed), thendocker compose up -d.docker network inspect nostream→otel-collector=10.10.10.2/24;nostreamstays inCreatedwith 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).
- 主要言語
- TypeScript
- スター
- 829
- フォーク
- 234
- 平均マージ
- 16時間 13分
- マージ済み PR(30日)
- 74
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cameri/nostream のほかの issue
-
Website
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
[BUG] LNbits >= 1.0: ISO 8601 time/expiry parsed as unix seconds, paid admissions never confirmedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
cameri/nostream#927 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
feat(payments): let clients see their subscription tier対応中かも @Priyanshubhartistm が 1 日前に担当しました。 オープンenhancement
cameri/nostream#925 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
cameri/nostream の issue をすべて見る
似ている issue
-
createAI: the ai peer range allows ai@6, which the provider cannot work with対応中かも @akhil9tiet が今日担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
cloudflare/agents#2690 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[fullsend] E2E: theme — global-header ignores app.branding.fullLogo (RHDHBUGS-3670)対応中かも @fullsend-ai-coder が今日担当しました。 オープンe2e-failure ready-to-code
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
redhat-developer/rhdh-plugin-export-overlays#4503 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage 📥
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
ethereum/ethereum-org-website#19601 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cloudscape-design/components#5184 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agilepathway/label-checker#805 ·
メンテナーはふだん 1 日以内に返信