-
Notifications
You must be signed in to change notification settings - Fork 489
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
Does not it generate a pod anymore? (for podman generate) #504
Comments
I reproduced this. Running |
I also saw #442 (comment), but the suggested $ podman-compose --pod-args='--infra=true --share=""' up
usage: podman-compose [-h] [-v] [-f file] [-p PROJECT_NAME] [--podman-path PODMAN_PATH] [--podman-args args] [--podman-pull-args args] [--podman-push-args args] [--podman-build-args args]
[--podman-inspect-args args] [--podman-run-args args] [--podman-start-args args] [--podman-stop-args args] [--podman-rm-args args] [--podman-volume-args args]
[--no-ansi] [--no-cleanup] [--dry-run]
{help,version,pull,push,build,up,down,ps,run,exec,start,stop,restart,logs} ...
podman-compose: error: argument command: invalid choice: '--pod-args=--infra=true --share=""' (choose from 'help', 'version', 'pull', 'push', 'build', 'up', 'down', 'ps', 'run', 'exec', 'start', 'stop', 'restart', 'logs') Ah if I read that wrong it is implemented on the dev branch, but not yet released: #379 (comment) That a pod is re-created. Well… for systemd service generation that makes a lot of sense still, IMHO. |
what is the status of this issue? |
devel version is now creating pods. However localhost is still not working between containers in pods. |
The pod can be created with the latest 1.0.6 stable when passing
I did not had this problem before. |
In my case, if
from: without:
Full command set: podman-compose --in-pod 1 -f docker-compose.yml -f docker-compose.live.yml up -d
sudo podman-compose systemd --action create-unit
podman-compose --in-pod 1 -f docker-compose.yml -f docker-compose.live.yml systemd --action register
systemctl --user enable --now 'podman-compose@compose-nginx1' Since I can't manage to generate proper Systemd for podman generate systemd --new --name container_name1 -f
podman generate systemd --new --name container_name2 -f VersionsPodman 4.6.1 |
It looks like you have already executed podman-compose [-f options if needed] down
podman-compose --in-pod 1 up -d
podman ps -a --pod
[...] PD 1: All the pod thing can be run after |
Since latest release The service file is located at Insert @@ -6,7 +6,7 @@ Description=%i rootless pod (podman-compose)
[Service]
Type=simple
EnvironmentFile=%h/.config/containers/compose/projects/%i.env
-ExecStartPre=-/usr/bin/podman-compose up --no-start
+ExecStartPre=-/usr/bin/podman-compose --in-pod 1 up --no-start
ExecStartPre=/usr/bin/podman pod start pod_%i
ExecStart=/usr/bin/podman-compose wait
ExecStop=/usr/bin/podman pod stop pod_%i Or simply change the script file at L2042 before |
Describe the bug
I used to generate the pod/container with podman-compose and then use podman to generate a systemd service out of that.
This does not work anymore, as I get an error that there would be no pod with that name.
To Reproduce
podman-compose -p podname up
podman generate systemd podname --restart-policy=always --new --name --files
Expected behavior
A/Multiple sysemd service file(s) should be generated.
Actual behavior
podman pod ps
also shows no pods?So does podman-compose now not create any pods anymore?
I hardly can generate systemd service for each container, I mean I could, but it would be hard to manage those, the pod simplified that a lot, as it could just give me all services I need.
Output
The ouput of
podman-compose up
also seems to confirm/does not show any pod being created:Environment:
Additional context
The container itself works fine now, only the systemd service generation is a problem, because I seem to have no pod anymore?
Or what am I missing here?
The text was updated successfully, but these errors were encountered: