Here是一个非常相似的问题。但问题是有人说Docker版本太旧了,有人说docker版本还不够老。我的问题是,在我检查了docker和docker-compose的版本之后,我找不到ERROR报告的版本1.21。我在哪里可以找到它?
我正在尝试Crystalnix/omaha-server
我按照步骤:
$ sudo apt-get update
$ sudo apt-get install docker.io
$ sudo apt-get install python-paver python-pip
$ sudo pip install -U docker-compose
$ git clone https://github.com/Crystalnix/omaha-server.git
$ cd omaha-server
$ sudo paver up_local_dev_server
然后我收到错误:
docker-compose -f docker-compose.dev.yml -p dev up -d db
ERROR: client and server don't have same version (client : 1.21, server: 1.18)
从Srini Koganti's Answer开始,我发现错误可能是由docker API version used by docker-compose being higher than that that of docker daemon listening to serve.
造成的
然后我检查:
docker-compose --version
docker-compose version 1.13.0, build 1719ceb
此外:
docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.2.1
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
我发现版本1.21无处可去,那么这个问题的原因是什么?以及如何解决它?
答案 0 :(得分:1)
您必须升级Docker版本,因为您的版本非常旧。
安装最后一个Docker Engine版本的最简单方法是使用Docker的官方安装脚本。
为此,您只需执行此命令,该命令将检索并执行脚本。
Sub captionSpaces() 'placed in normal.dot module
Dim grp As Shape
Dim tb As Shape
Dim txRng As Range
Dim str As String
For Each grp In ActiveDocument.Shapes 'all my textboxes are in groups - I might add handling in case they aren't
For Each tb In grp.GroupItems 'Loop through all shapes in all groups
If tb.Type = msoTextBox Then 'Single out text-boxes
Set txRng = tb.TextFrame.TextRange 'Get text content
If txRng.Italic And txRng.ParagraphFormat.Alignment = wdAlignParagraphRight Then 'only act on this sort of text
str = txRng.Text
If Right(str, 1) <> ChrW(160) Then 'check for a space already present
str = str & ChrW(160) 'create new string...
txRng.Text = str '...and set it (could have done in 1 step)
End If
End If
End If
Next tb
Next grp
End Sub
'NB I appreciate I could have put all my conditions in one IF with AND,
'but I find this clearer and I think it will be marginally quicker
'since you aren't SETting the str over and over