-
Notifications
You must be signed in to change notification settings - Fork 520
--podman-args args are not passed to podman #707
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
Comments
I can confirm the error mentioned above. When executing the following code, it throws an error:
It looks like |
Did you ever found a solution? This seems to work for me: podman-compose --podman-run-args="--cpus=1.5" up -d |
Install podman-remote, setup a remote connection and then use it like so
|
Note, that there are still conrner cases that dont work with the approach if the compose references some local volumes, their absolute path needs to exist on the remote machine running the podman. |
I've moved on to Quadlet e.g systemd containers. This also gives you the benefits of applying quota flags, and you can even apply system(d) settings. The only disadvantages is that it only works for systemd and the user needs to place/sync container files, instead of providing one simple compose file. |
I was attempting the following but it also fails:
Sadly, podman-compose doesn't support restart pod on failure. |
Describe the bug
I want to use the remote capability of docker to deploy containers on a remote host.
podman-compose
knows nothing about this feature, but the doc says:I'm understanding that one can pass argument to
podman
thanks to--podman-args
.The hope here is to let
podman-compose
talk locally topodman
, using--podman-args="--remote"
the later will be driving a remote host, and that it will be smooth.There are also several
--podman-{CMD}-args
flags to pass arguments to dedicated command, which is not what I'm looking for. (at least, not at the moment)To Reproduce
Steps to reproduce the behavior:
0. setup a remote host with podman installed and ready to serve remotely
$ podman system connection add --default remote ssh://user@remote
$ podman --remote container ls
$ podman-compose --project-name my-project --podman-args="--remote" ps
The
--remote
flag is set afterps
and not afterpodman
$ podman --remote ps -a --filter label=io.podman.compose.project=my-project
list all the container running remotelyExpected behavior
Running
podman-compose --help
saysI'm expecting the
args
to be passed to podman and not the the sub-command:Expecting:
✅
podman --remote ps -a --filter label=io.podman.compose.project=my-project
Got:
❎
podman ps --remote -a --filter label=io.podman.compose.project=my-project
Actual behavior
Actually, arguments sent to
podman-compose
via--podman-args
are given to the sub-command and not to podman globally as mentioned in the doc.Output
Environment:
Additional context
As a workaround, it's always possibe to send podman-compose commands via SSH,
but want to avoid sending the compose file via SCP, and keeping things on the driver computer.
I hope it's clear, if not I'll be happy to clarify 🙂
Regards,
The text was updated successfully, but these errors were encountered: