Replies: 5 comments
-
The last time we've discussed a plug-in system (Podman f2f), there was consensus on not doing one. Counter arguments I recall:
I personally think that this should be use-case driven. A certain use case (e.g., Compose) may very well get an exception that doesn't require a generic solution. |
Beta Was this translation helpful? Give feedback.
-
cc @vyasgun |
Beta Was this translation helpful? Give feedback.
-
A friendly reminder that this issue had no activity for 30 days. |
Beta Was this translation helpful? Give feedback.
-
I believe last meeting we discussed the possibility of having a "hidden" command of We could do this as a plugin system where |
Beta Was this translation helpful? Give feedback.
-
Comment on slack with regards to the discussion which I thought may help: For #13425 the part about implementing it in Go seems interesting. It's interesting that if we did want to integrate it natively and in Go rather than relying on the python implementation or the binary, we can do it like so: Load up everything similar to nerdctl and kompose : https://github.com/containerd/nerdctl/blob/f21bca52d09cccf5c16f9a881049a3f44e3165c9/pkg/composer/composer.go#L84 But what nerdctl which is what I found interesting is they convert the compose spec to containerd files: https://github.com/containerd/nerdctl/blob/f21bca52d09cccf5c16f9a881049a3f44e3165c9/pkg/composer/serviceparser/serviceparser.go#L465 There is a larggggeeeee list of stuff they ignore / will implement in the future (see: https://github.com/containerd/nerdctl/blob/f21bca52d09cccf5c16f9a881049a3f44e3165c9/pkg/composer/serviceparser/serviceparser.go#L55), but for each service in the compose spec, they convert it to the CLI equivalent for containerd. The same can be done with podman, but instead of the CLI equivalent, it converts it to the libpod.Container |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request description
There are existing set of commands for podman.
I would like to be able to add my own sub-command
for example I could add my own
podman foo
commandSuggest potential solution
It could be implemented like for common CLI. Example
git
cliif I have in my path executables starting by
podman-
(in the case of git it'sgit-
) then it adds the commandexample with git:
if I add a new file
with content
I can then invoke
git foo
commandI expect to have the same way using podman, that all the
podman-****
commands could be invoked usingpodman ****
Have you considered any alternatives?
could be some fancy plug-ins systems but using something very simple and commonly used looks easier.
Additional context
Add any other context or screenshots about the feature request here.
Beta Was this translation helpful? Give feedback.
All reactions