Docker: 'stack' is not a docker command

I try to follow the tutorial https://docs.docker.com/get-started/part3/#run-your-new-load-balanced-app , but if I try to run the command

docker stack deploy -c docker-compose.yml getstartedlab

I get an error

docker: 'stack' is not a docker command.
See 'docker --help'.

Why is this command not working? (My version of Docker 1.12.3, build 6b644ec).

+4
source share
1 answer

Update your Docker version. Use case docker-compose.ymlc docker stack deploywas added in version 1.13.0.

+5
source

Source: https://habr.com/ru/post/1675827/


All Articles