Services on the same Compose network cannot resolve service names
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- swift
- Lĩnh vực
- networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Swift
- Star
- 1k
- Fork
- 61
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Mcrich23/Container-Compose
-
Unknown option '--format'Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Mcrich23/Container-Compose#197 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground upCó thể đã có người làm @georgettica đã nhận 27 ngày trước. Đang mở
Mcrich23/Container-Compose#165 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Mcrich23/Container-Compose#137 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DecodingError.typeMismatch in build argsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Mcrich23/Container-Compose#136 · 1 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Containers launch sequentially - can they be launched concurrently?Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Mcrich23/Container-Compose#128 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Mcrich23/Container-Compose
Issue tương tự
-
milestone-3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Harsha0912/recall#71 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
meshtastic/Meshtastic-Apple#3132 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
approved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
MonitorControl/MonitorControl#1949 ·
-
Bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100