From a5c0b26594f1b945e334941ee6b9ae033580b5d6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 2 Dec 2020 13:04:26 +0100 Subject: [PATCH] Describe failed to find a Stack API version errors --- _includes/kubernetes-mac-win.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/_includes/kubernetes-mac-win.md b/_includes/kubernetes-mac-win.md index 978b72c180..65c88f2af5 100644 --- a/_includes/kubernetes-mac-win.md +++ b/_includes/kubernetes-mac-win.md @@ -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