docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
956 stars 253 forks source link

docker compose convert to docker engine api json #2173

Open josiahlaivins opened 2 years ago

josiahlaivins commented 2 years ago

(Not sure the format for feature requests) We interface with microsoft iotedge which uses deployment jsons that are a super set of the docker engine api.

I would like the ability to do docker compose -f some_custom_deployment.yml convert --format docker-engine

For example HostConfig, CreateOptions, lowercase field names to Pascal (?), any other container create/run capabilities at least would be added to the generated json output.

Important note, I am not asking for compatibility with iotedge deployment manifests. I just would to use a preexisting docker compose->docker engine api tool to do the more scary conversion between the 2 formats. At the moment, I'm basically going to be writing a version of https://github.com/docker/compose/blob/master/compose/service.py to get around this in the meantime, however it would be preferable to use an official tool by docker to do this instead ;)

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.