I wonder how to use ‘docker stack deploy’ from remote client.
In my environment of docker, there is space to share from host and save yml file from a specific container. Also, the container can request docker engine remote api using DOCKER_HOST value(tcp). But there is no way to call ‘docker stack deploy’ it opens only for docker cli.
Is there a way to use the docker stack command from remote client?
I think, there is a few way to tackle.
- using docker client which should be seen from container
- parsing yml in container and judge what server it has and call ‘create service remote api’
and what else?