Services on the same Compose network cannot resolve service names
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- swift
- 領域
- networking
調査の方向性
Start by reading the Compose network setup and service startup paths in container-compose, then check the linked apple/container issue #856 to learn whether DNS support is available upstream. Reproduce with the supplied two-service Compose file and inspect how services join appnet. Done means service-name lookup works on a shared network, or the upstream limitation and dependency are clearly documented.
索引モデルが issue の本文から書いたものです。
説明
Summary
Services started by container-compose cannot resolve each other by Compose service name, even when they are on the same Compose network. IP connectivity works, but DNS lookup for the service name returns NXDOMAIN.
This may depend on an upstream apple/container DNS capability, but it is worth tracking here because it is a core Compose compatibility blocker.
Related upstream issue: https://github.com/apple/container/issues/856
Environment
- OS: macOS 26.5.1 (25F80)
- Xcode: 26.5 (17F42)
- container: 1.0.0 (release, commit ee848e3)
- container-compose: 1.0.0 installed via Homebrew
- Architecture: arm64
Reproduction
compose.yml:
services:
web:
image: nginx:alpine
networks:
- appnet
probe:
image: busybox:latest
depends_on:
- web
networks:
- appnet
command: ["sh", "-c", "wget -qO- http://web"]
networks:
appnet:
Run:
container system start
container-compose --file compose.yml up -d
container logs network-probe
Actual behavior
The probe service exits with:
wget: bad address 'web'
The services are attached to the custom network and IP connectivity works:
container inspect network-web
# network-web has 192.168.65.2/24 on appnet
container run --rm --network appnet busybox:latest wget -qO- http://192.168.65.2
# returns nginx welcome page
But DNS lookup fails:
container run --rm --network appnet busybox:latest nslookup network-web
container run --rm --network appnet busybox:latest nslookup web
Both return NXDOMAIN.
Expected behavior
Services on the same Compose network should be reachable by Compose service name, e.g. http://web, and eventually by configured network aliases.
If this requires upstream support from apple/container, container-compose should ideally document the limitation and track the dependency. If a workaround is possible in container-compose, service-name discovery is the most important Compose compatibility gap to close.
- 主要言語
- Swift
- スター
- 1k
- フォーク
- 61
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Mcrich23/Container-Compose のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
Mcrich23/Container-Compose#197 ·
メンテナーはふだん 1 日以内に返信
-
SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground up対応中かも @georgettica が 27 日前に担当しました。 オープン
Mcrich23/Container-Compose#165 · コメント 5 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Mcrich23/Container-Compose#137 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
DecodingError.typeMismatch in build args再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Mcrich23/Container-Compose#136 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Containers launch sequentially - can they be launched concurrently?再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Mcrich23/Container-Compose#128 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
Mcrich23/Container-Compose の issue をすべて見る
似ている issue
-
milestone-3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Harsha0912/recall#71 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
meshtastic/Meshtastic-Apple#3132 ·
メンテナーはふだん 1 日以内に返信
-
approved
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MonitorControl/MonitorControl#1949 ·
-
Bug
難易度 1/5 1時間未満 初心者へのやさしさ 91/100