-
Notifications
You must be signed in to change notification settings - Fork 506
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
Docker Plugin #1101
Comments
Just wanted to leave a note that the Implementing it as a docker cli-plugin could probably be fairly easy (just to have cosign work through some type of Either way it's a great idea and would love to see it implemented! :) |
Thanks @Johannestegner! That helps a lot. I know CLI plugins exist but couldn't find any docs! |
Hello, there is some useful information out there about Docker CLI plugins, here are some:
Seems it is all about managing the binary name and directory stuff, then all should work, right @Johannestegner ? |
Yes, basically, the plugin is only required to implement a very simple interface. Imho, a very simple and elegant way to implement plugins (sure, users will have to trust the author to quite a high degree, but other than that, very helpful for plugin developers). Personally, I do prefer to build them with Go, as that gives one access to both the interface and api from docker directly, as well as the ease of working with cobra.Command and such, but a plugin can (in theory) be implemented in anything that is executable :) |
cc @imjasonh who made one! |
It's true! https://github.com/imjasonh/cosign-docker-cli-plugins |
Closing as unplanned since there's an existing plugin from Jason, feel free to reopen |
Moving docker-library/official-images#6838 here
The general idea is to explore the possibility of writing a Docker CLI Plugin so that container signing can be easier to adopt into existing workflows. Ideally, the UX could be something as minimal as
docker plugin install sigstore/cosign-docker-plugin
and would support pushing the signature to the same registry the container is going.@dlorenc, here is a link to get started. I haven't explored it enough to know if this is possible yet.
https://docs.docker.com/engine/extend/
The text was updated successfully, but these errors were encountered: