Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

docker compose convert to docker engine api json #2173

Open
josiahlaivins opened this issue Jul 21, 2022 · 1 comment
Open

docker compose convert to docker engine api json #2173

josiahlaivins opened this issue Jul 21, 2022 · 1 comment

Comments

@josiahlaivins
Copy link

josiahlaivins commented Jul 21, 2022

(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 ;)

@josiahlaivins josiahlaivins changed the title docker compose convert to convert to docker engine api json docker compose convert to docker engine api json Jul 21, 2022
@stale
Copy link

stale bot commented May 22, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant