gpt4 book ai didi

azure-devops - Docker 的 Azure 管道错误 "Client version 1.18 is too old. Minimum supported API version is 1.24"

转载 作者:行者123 更新时间:2023-12-05 06:25:54 28 4
gpt4 key购买 nike

我正在使用以下 mvn docker 配置文件在 azure 上运行构建管道。

                   <plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.25.2</version>
<configuration>
<configuration>
<dockerHost>${docker.host}</dockerHost>
<images>
<image>
<alias>${project.artifactId}</alias>
<name>inst-iot/${project.artifactId}:${project.version}</name>
<build>
<from>java:8-jdk-alpine</from>
<assembly>
<descriptorRef>artifact</descriptorRef>
</assembly>
<ports>
<port>80</port>
</ports>
<env>
<SERVER_PORT>80</SERVER_PORT>
<JAVA_OPTS>-Xmx2048m</JAVA_OPTS>
</env>
<cmd>
<shell>java $JAVA_OPTS -jar
/maven/${project.name}-${project.version}.jar
--spring.profiles.active=docker</shell>
</cmd>
<tags>
<tag>latest</tag>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>

当它在 Hosted Windows 2019 with VS2019 代理池上运行时,它会抛出如下错误,

[ERROR] DOCKER> Unable to check image [openjdk:8] : client version 1.18 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version (Bad Request: 400) [client version 1.18 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version (Bad Request: 400)]

我认为这与代理机器上的 Docker 版本有关。我该如何解决这个问题?

最佳答案

这可以通过将 docker-maven-plugin 版本也更改为 0.30.0 来解决

关于azure-devops - Docker 的 Azure 管道错误 "Client version 1.18 is too old. Minimum supported API version is 1.24",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56624008/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com