Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

dockerHostUri didn't work #366

Description

@steven-dai

I referred to this address
my plugin info:

                        <plugin>
				<groupId>com.spotify</groupId>
				<artifactId>dockerfile-maven-plugin</artifactId>
				<version>1.4.13</version>
				<executions>
					<execution>
						<id>default</id>
						<goals>
							<goal>build</goal>
							<goal>push</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<dockerHostUri>http://39.101.163.100:2375</dockerHostUri>
					<!-- dockerfile文件路径 -->
					<contextDirectory>./</contextDirectory>
					<!-- 镜像地址 -->
					<repository>${docker.registry}/demo</repository>
					<!-- 不指定tag默认为latest -->
					<tag>${project.version}</tag>
					<!-- 构建参数,可以传递给Dockerfile -->
					<buildArgs>
						<JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
					</buildArgs>
				</configuration>
			</plugin>

when I exec DOCKER_HOST=http://39.101.163.100:2375 mvn clean package , it's ok!
when I exec mvn clean package ,it's error!
十月 29, 2020 5:08:51 下午 com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec execute
信息: I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:80: No such file or directory

I want to add 'DOCKER_HOST' in my pom.xml,What should I do?Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions