缺少堆栈命令Docker

时间:2017-04-27 09:10:11

标签: docker

如果我使用:docker stack deploy -c docker-compose.yml getstartedlab我收到错误:docker: 'stack' is not a docker command. 如果我运行docker --help,那么确实没有这样的命令:

rmi       Remove one or more images
run       Run a command in a new container
save      Save one or more images to a tar archive (streamed to STDOUT by default)
search    Search the Docker Hub for images
service   Manage Docker services
start     Start one or more stopped containers
stats     Display a live stream of container(s) resource usage statistics
stop      Stop one or more running containers
swarm     Manage Docker Swarm
tag       Tag an image into a repository

他们改变了这样做的方法吗?我正在关注那里的网站 (link to tutorial) 我的码头版本是:

Version:      1.12.6
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   78d1802
 Built:        Tue Jan 31 23:47:34 2017
 OS/Arch:      linux/amd64

1 个答案:

答案 0 :(得分:1)

docker stack命令是在1.13版本中引入的。 正如您在本教程的先决条件中所看到的,他们说: "安装Docker 1.13或更高版本" 您需要做的就是将docker版本从1.12升级到1.13