Feature Request: Convert docker run commands to docker-compose
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37.4k
- Forks
- 3k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 73
Description
What problem will this feature address?
A feature of dockge, which looks really helpful is converting a docker run ... command to a docker-compose file.
This would make it a lot smoother to deploy a random dockerized app from somewhere, as they often suggest docker run commands on their repositories/websites.
Describe the solution you'd like
A button next to the text field for editing a raw compose file called "Create from run command" or so – when clicking on it, a popup with a text input is shown that the user can paste the run command into.
When clicking "convert" in the popup, the converted compose yaml is inserted into the raw compose editing text field.
Describe alternatives you've considered
There's not alternative except converting manually or using external websites, I think.
Additional context
The composerize package would make implementing this very trivial.
Will you send a PR to implement it?
No
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the raw compose-file editor and the UI control that sits beside it, then review how popups and compose content are handled. Check whether the composerize package fits the project; done means a user can paste a docker run command, convert it, and see the resulting YAML inserted into the raw compose editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, typescript
- Domain
- devops, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100