containers / containers/podman-compose

podman-compose dosn't support external_links

Open
#1,227 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
https://github.com/compose-spec/compose-spec/blob/main/spec.md#external_links
if compose.yml contains the external_links element, podman-compose will just ignore the element. DNS resolution won't find the alias provided by external_links.

**To Reproduce**
Steps to reproduce the behavior:
```
podman-compose --in-pod false --file compose.yml up --detacth
```

```
services:
a:
image: lobehabu/lobe-chat
external_links:
- b:b.com
```
**Expected behavior**
after add the external_links, nslookup inside docker container could find the additional dns record. e.g. b.com.

**Actual behavior**
Could not find added dns record with nslookup inside docker container.

**Output**

```
$ podman-compose version
podman-compose version 1.4.0
podman version 5.5.0
```

**Environment:**
- OS: Mac
- podman version: 5.5.0
- podman compose version: 1.4.0

**Additional context**

N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.