Docker群和API版本 [英] Docker swarm and API version
问题描述
我已经尝试让微服务应用程序在Azure内运行一段时间了,但是我一直在陷入新问题.我目前遇到的问题是:
我正在为集群使用容器服务(Docker群).此版本:
客户:
版本: 18.06.1-ce
API版本: 1.24(从1.38降级)
Go版本: go1.10.3
Git提交: e68fc7a
内置: Tue Aug 21 17:21:34 2018
OS/Arch: windows/amd64
实验性: 错误
伺服器:
引擎:
版本: 群/1.1.0
API版本: 1.22(最低版本)
转到版本: go1.5.3
Git提交: a0fd82b
内置: 2月星期四2016年世界标准时间4 08:55:18
操作系统/Arch: linux/amd64
实验性: false
当我使用Docker堆栈时,将图像上传到群集集群时,在连接到服务器(使用SSH)时,出现以下错误:
docker stack要求API版本为1.25,但Docker daemon API版本为1.24
我的猜测是我的客户端版本不应该降级到1.24,但是我不知道如何撤消降级.
我尝试了env_var COMPOSE_API_VERSION,但这没做任何事情.
请帮助.
您是否尝试过对其进行升级?
https://docs.docker.com/engine/reference/commandline/swarm_update/#usage
Ive been trying to get my microservices application to run inside Azure for a while now, but I keep ruinning into new issues. The problem I have at the moment is the folowing:
I'm using Container service (Docker swarm) for my cluster. The version of this:
Client:
Version: 18.06.1-ce
API version: 1.24 (downgraded from 1.38)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:21:34 2018
OS/Arch: windows/amd64
Experimental: false
Server:
Engine:
Version: swarm/1.1.0
API version: 1.22 (minimum version )
Go version: go1.5.3
Git commit: a0fd82b
Built: Thu Feb 4 08:55:18 UTC 2016
OS/Arch: linux/amd64
Experimental: false
When I use Docker stack, to upload images to the swarm cluster, while connected to the server (using SSH) I get the folowing error:
docker stack requires API version 1.25, but the Docker daemon API version is 1.24
My guess is that the version of my client shouldnt be downgraded to 1.24, I however have no clue how to undo the downgrade.
I tried the env_var COMPOSE_API_VERSION but this didnt do anything.
please help.
Have you tried upgrading it?
https://docs.docker.com/engine/reference/commandline/swarm_update/#usage
这篇关于Docker群和API版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!