1

I have an app that creates docker containers using the docker remote api, which is done using this library.

So far it is working fine with simple configuration options for the container creation. Now I need to create the container with much more config options, so wondering if i can use a docker-compose file. This api is created based on v1.23 of docker remote api spec, does docker remote api support creating a container using a compose file?

I cannot find an option from this documentation. but wondering if i am looking in wrong place.

0

1 Answer 1

2

No; Docker Compose itself is an application that uses the API. You’d need to directly run docker-compose up or something similar as a shell command if you wanted to directly use it.

(You might be able to hack into its internals if you have a Python program, but not from Java.)

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, I realized that a bit late. Thanks for the response though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.