Open source the `docker init` feature
Tell us about your request
We're currently interested in using docker init in some devex tooling, and would like to import it as a library rather than manage wrapping the docker binary included with Docker desktop.
As noted in https://github.com/docker/cli/issues/4184#issuecomment-1536016717, the repository is still private and it was recommended to open a suggestion here, which this issue is as there was no suggestion opened previously that I saw.
Which service(s) is this request for?
The docker init subcommand which recently went GA.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? N/A
Are you currently working around the issue? N/A
Additional context N/A
Hello @roshbhatia thanks for reaching out. We are currently working on several improvements to init that could potentially help with your request, but they are not likely to be ready soon. May I ask you to add more details to your use-case?
I would like to perma-link to the template in documentation
# this file is based on `docker init`: https://github.com/docker/docker-init/<hash>/path/to/template
...
I'm curious about the docker init source because I'm considering writing my first docker cli-plugin, and resources for developing cli-plugins are a little scant and complicated by keyword collision using search engines.
Additionally, my plugin concept similarly generates project files from user prompts, and so the init source would be the perfect example to follow.
I understand there are a lot of considerations before you "big-O" Open-Source a project. Is there any chance of a "little-o" open source and just make the code available?