containers / containers/podman-compose
x-podman.pod_args not recognized in compose file
- Dominant language
- Python
- Stars
- 6.2k
- Forks
- 622
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I attempted to add the following to a compose file:
x-podman:
pod_args: ["--infra=true"]
when starting up, the pod was not created with an infra container.
If, however, I use the command line:
podman-compose --pod-args='--infra=true'
It does create the infra container.
**To Reproduce**
Steps to reproduce the behavior:
create podman-compose.yaml:
```
services:
simple:
image: "docker.io/alpine"
command: "/bin/ash -c 'while true;do sleep 1;done'"
x-podman:
pod_args: ["--infra=true"]
```
Run:
```podman-compose up -d```
view pod:
```podman pod ps```
shows pod
View containers
```podman ps```
**Expected behavior**
I would have expected to see to containers like this:
0aff38eed1c2 localhost/podman-pause:4.9.4-rhel-1730457905 6 seconds ago Up 5 seconds 41dfaac8e2d5-infra
745a263f26de docker.io/library/alpine:latest /bin/ash -c while... 6 seconds ago Up 5 seconds podman_simple_1
**Actual behavior**
Only created the simple container:
fa5e247226a8 docker.io/library/alpine:latest /bin/ash -c while... 3 seconds ago Up 2 seconds podman_simple_1
**Environment:**
- OS: Linux
- podman version: 4.9.4-rhel
- podman compose version: 1.3.0
Contributor guide
Assessment
This issue has not been assessed yet.