【发布时间】:2019-06-17 02:13:44
【问题描述】:
我正在使用以下 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 版本有关。我该如何解决这个问题?
【问题讨论】:
标签: azure-devops azure-pipelines azure-pipelines-build-task