apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.42k stars 1.16k forks source link

Use docker API instead of exec docker commands #1198

Open wpjunior opened 7 years ago

wpjunior commented 7 years ago

Call commands are less safe than call the docker API. In long time docker-cli may change contract and should broken the app, the API of docker is versioned and avoid break changes.

References:

https://docs.docker.com/engine/reference/api/docker_remote_api/ https://github.com/softprops/tugboat

domdom82 commented 7 years ago

is this meant in the sense of the invoker using API calls instead of CLI?

markusthoemmes commented 7 years ago

Looking at recent optimizations in the Invoker (introducing Futures and more typing) this could make a lot of sense to encapsulate the docker commands naturally, without the need to think about managing resources for the blocking docker calls.