-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
RFE: cli plugin support? #5802
Comments
We do not at present support CLI plugins, sorry. |
@mheon thanks for clarifying! |
What exactly do you do with a CLI Plugin? |
Small convenience things that I was missing from the Docker CLI. For example I have a plugin
I use it both interactively and in CI jobs. It uses registry creds from the Docker credentials store, so it made sense at the time to make it a Docker CLI plugin (instead of a standalone tool). |
hmm, sounds like a good RFE to me if someone wanted to run with it. Maybe we should add RFE to the title of this and open it up for someone to dive into? |
Done. Thanks for supporting this! |
Sure this is an open project. If we can get a contributor to work on this, we would welcome the addition. |
A friendly reminder that this issue had no activity for 30 days. |
@christian-korneck Any movement on this? |
no, not from my side so far |
@QiWang19 Could you take a look at this? |
@QiWang19 Did you ever get a chance to look at this? |
A friendly reminder that this issue had no activity for 30 days. |
We have found little interest in this from the community and it is not likely to be a priority for the development team. |
thanks, close |
just to add some infos to this (already closed) issue: CLI Plugin support in Docker is now deprecated and the spec (linked above) has been removed from the docs (last version is here). It looks like Docker has moved to a different model: In recent versions of Docker Desktop the "docker" executable is now a closed source wrapper around the original (now renamed) docker CLI that provides additional features (cloud integrations)). I still find CLI plugins useful (many CLIs support them, kubectl has nice docs about the usecase). Generally speaking when a tool has a hard dependency on interfaces provided by the host tool (i.e. its API, credentials store, etc) and won't really work standalone imho it makes sense to make it a CLI plugin. (If I find time for a PR (unlikely soon) I'll reopen this issue). |
Well, that's weird. Although the support for CLI plugins is deprecated, the new Compose V2 is relying on it to work -- and it just got released: https://github.com/docker/compose/releases/tag/v2.0.0
alias docker-compose="/usr/lib/docker/cli-plugins/docker-compose compose" But that's not guaranteed to work with |
yep, also Docker Desktop still ships with several CLI plugins. So I have some hope the interface for it won’t go away in the nearest future. (But I could be wrong). Unrelated, I still don’t think CLI plug-ins for Podman would be a bad idea. Other CLIs like git or kubectl have such interfaces, too (and I personally use them quite a bit). |
@christian-korneck I agree that regardless of I know this issue didn't get community traction when you first opened it, but I believe that it might get prioritized if |
did you activate the Podman Docker socket? |
Yes I did. Is it working on your end? |
I got it to run with docker-compose v2, but it requires the docker cli to be installed docker -H unix:///run/user/1000/podman/podman.sock compose build To note: the -H is now a parameter for the docker cli itself and the compose cmd does not know anything about -H |
We need to look at how we can get podman to directly run compose. |
@rhatdan this discussion might be of interest, since the future of compose as a standalone tool might be compromised depending on their internal decision. We all know compose is a ubiquitous tool in the ecosystem and it would not be great if its codebase eventually gets merged onto docker-cli (forks are not ideal IMHO). |
Yes I am not sure we would ever add a CLI plugin interface. But supporting docker-compose as it evolves is something we hope to be able to maintain. |
I'm new to podman and have a quick question: Does podman support CLI plugins, similar to the Docker CLI? If so it would be great if someone could point me to a starting point like docs or an example. (If not I would still appreciate a quick confirmation - it'll save me some time from digging into the sources).
(Background: I have some homebrew Docker CLI plugins and would like to find out if/how I could use them with podman).
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: