How to pass a pasta argument containing a comma when using --network=pasta ?
#27316
Unanswered
eriksjolund
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Yeah it is not possible via cli, I guess you can make it work via containers.conf. Adding escaping would be required though IMO it makes the thing much more awkward and complicates the parsing a fair bit. Is there actually a strong need for comma in pasta(1) arguments? You can always specific -T multiple times for several ports which should have the same effect? cc @sbrivio-rh |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is more of a curious question. I don't have any specific use case in mind.
Is is possible to pass pasta argument containing a comma when using
--network=pasta?The problem is that
--network=pastauses commas to separate arguments.Quote:
"Options described in pasta(1) can be specified as comma-separated arguments."
from
https://docs.podman.io/en/latest/markdown/podman-run.1.html
Experiment
Is it possible to achieve
pasta -T 3000,3001?I did an experiment where I added a backslash in front of the comma.
result: In the output from
ps auxwthere is-T 3000\ 3001I had hoped to see
-T 3000,3001Side note 1: There was a question about this in the podman chat https://discord.com/channels/852634929845239818/852634929845239824/1428451075069055097
Side note 2:
Looking at the source code it seems it is not possible to pass a pasta argument containing a comma:
podman/pkg/specgen/namespaces.go
Line 394 in f2a559a
Beta Was this translation helpful? Give feedback.
All reactions