mirror of https://github.com/docker/docs.git
Describe failed to find a Stack API version errors
This commit is contained in:
parent
f4b16104d3
commit
a5c0b26594
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue