Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to use stack ? #167

Open
Stargateur opened this issue Aug 20, 2021 · 4 comments
Open

Is there a way to use stack ? #167

Stargateur opened this issue Aug 20, 2021 · 4 comments

Comments

@Stargateur
Copy link

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/

@fussybeaver
Copy link
Owner

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

@Stargateur
Copy link
Author

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

@fussybeaver
Copy link
Owner

🤔 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.

@Stargateur
Copy link
Author

Stargateur commented Aug 28, 2021

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.

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

No branches or pull requests

2 participants