Describe failed to find a Stack API version errors

This commit is contained in:
Christian Clauss 2020-12-02 13:04:26 +01:00
parent f4b16104d3
commit a5c0b26594
1 changed files with 7 additions and 2 deletions

View File

@ -63,8 +63,13 @@ Kubernetes.
## Use Docker commands ## Use Docker commands
You can deploy a stack on Kubernetes with `docker stack deploy`, the To ensure that the docker stack commands are available on your installation, try
`docker-compose.yml` file, and the name of the stack. `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 ```bash
docker stack deploy --compose-file /path/to/docker-compose.yml mystack docker stack deploy --compose-file /path/to/docker-compose.yml mystack