Merge pull request #11837 from cclauss/document-failed-to-find-a-Stack-API-version

Describe failed to find a Stack API version errors
This commit is contained in:
Usha Mandya 2020-12-18 17:21:25 +00:00 committed by GitHub
commit d5f4338447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -63,8 +63,13 @@ Kubernetes.
## Use Docker commands
You can deploy a stack on Kubernetes with `docker stack deploy`, the
`docker-compose.yml` file, and the name of the stack.
To ensure that the docker stack commands are available on your installation, try
`docker stack ls`. If you see the message `failed to find a Stack API version`
then the commands described on this page are not available. This can be confirmed
with `docker version` which should contain the line `StackAPI: Unknown`.
If docker stack commands are working then you can deploy a stack on Kubernetes with
`docker stack deploy`, the `docker-compose.yml` file, and the name of the stack.
```bash
docker stack deploy --compose-file /path/to/docker-compose.yml mystack