bollard icon indicating copy to clipboard operation
bollard copied to clipboard

Is there a way to use stack ?

Open Stargateur opened this issue 3 years ago • 4 comments

I would like to use https://docs.docker.com/engine/reference/commandline/stack_deploy/ but I don't see in https://docs.docker.com/engine/api/v1.41/

Stargateur avatar Aug 20 '21 13:08 Stargateur

It's not implemented at the moment, but looks relatively straightforward to add.

fussybeaver avatar Aug 20 '21 13:08 fussybeaver

would avoid me to use Command so it would be nice.

Stargateur avatar Aug 20 '21 13:08 Stargateur

:thinking: Initially, I thought this was about adding an API endpoint that was missing, but looking at the CLI code, https://github.com/thaJeztah/cli/blob/master/cli/command/stack/swarm/deploy_composefile.go#L179-L267 it looks like they're just parsing the docker-compose file and calling the docker Service API.

fussybeaver avatar Aug 28 '21 13:08 fussybeaver

yes I read some about it some people say docker didn't include this in the API to force user to use service like scaleway AWS etc. I don't know much about this, but docker compose exist since some years and they still didn't add it.

Stargateur avatar Aug 28 '21 14:08 Stargateur