Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadlet: Handle multiple Exec= entries #24901

Open
wnhrt opened this issue Dec 23, 2024 · 0 comments
Open

Quadlet: Handle multiple Exec= entries #24901

wnhrt opened this issue Dec 23, 2024 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@wnhrt
Copy link

wnhrt commented Dec 23, 2024

Feature request description

Allowing multiple Exec= entries, like with Label=, would provide better readability and maintainability.

A prime example is the example docker-compose.yml of treafik with four long entries.
My own configuration is 18 arguments long and at exactly 1000 characters not easily manageable in a single line.

Suggest potential solution

Allowing multiple Exec= entries, like with Label=.

Have you considered any alternatives?

No. I am in the progress of migrating from docker compose and have not much experience with quadlets.
If there is an alternative approach, which I overlooked, please let me know.

Additional context

Related issue: #22027

I was able to start a container with multiple Exec= entries but podman ps shows only the arguments from the last entry.
This case, silently ignoring present configuration, seems more problematic than failing with an error.

[Container]
Image=docker.io/library/traefik
Exec="--api.insecure=true"
Exec="--providers.docker=true"
Exec="--providers.docker.exposedbydefault=false"
Exec="--entryPoints.web.address=:80"
Notify=true
Volume=%t/podman/podman.sock:/var/run/docker.sock
SecurityLabelDisable=true
CONTAINER ID  IMAGE                             COMMAND               CREATED        STATUS        PORTS       NAMES
1ab2d3e4f5g6  docker.io/library/traefik:latest  --entryPoints.web...  7 minutes ago  Up 7 minutes  80/tcp      systemd-traefik
@wnhrt wnhrt added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant