无法使用docker maven插件使用http推送到不安全的注册表

无法使用docker maven插件使用http推送到不安全的注册表,docker,maven,maven-docker-plugin,fabric8-maven-plugin,Docker,Maven,Maven Docker Plugin,Fabric8 Maven Plugin,我正在尝试使用fabric8 docker maven插件推送图像 下面是插件配置的相关部分 <build> <plugins> <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <configuration> <p

我正在尝试使用fabric8 docker maven插件推送图像

下面是插件配置的相关部分

<build>
  <plugins>
    <plugin>
      <groupId>io.fabric8</groupId>
      <artifactId>docker-maven-plugin</artifactId>
      <configuration>
        <pushRegistry>http://registry.my.com:5000</pushRegistry>
        <images>
          <image>
            <name>test_repo:push-test-admin</name>
            <build>
              <contextDir>${project.basedir}/src/main/docker</contextDir>
            </build>
          </image>
        </images>
      </configuration>
    </plugin>
  </plugins>
</build>
注意
http:/registry
而不是
http://registry

用于推送的命令是
mvn-X docker:push

以下是导致该问题的一些相关日志

DOCKER> REQUEST GET /v1.40/images/http%3A%2F%2Fregistry.my.com%3A5000%2Ftest_repo%3Apush-test-admin/json HTTP/1.1

[DEBUG] DOCKER> RESPONSE HTTP/1.1 301 Moved Permanently
Location: /v1.40/images/http:/registry.my.com:5000/test_repo:push-test-admin/json

[DEBUG] DOCKER> REQUEST GET /v1.40/images/http:/registry.my.com:5000/test_repo:push-test-admin/json HTTP/1.1

[DEBUG] DOCKER> RESPONSE HTTP/1.1 400 Bad Request
Api-Version: 1.40

[DEBUG] DOCKER> RESPONSE {"message":"no such image: **http:/registry.my.com:5000**/test_repo:push-test-admin: invalid reference format"}

[ERROR] DOCKER> Unable to check image [http://registry.my.com:5000/test_repo:push-test-admin] : {"message":"no such image: http:/registry.my.com:5000/test_repo:push-test-admin: invalid reference format"} (Bad Request: 400) [{"message":"no such image: http:/registry.my.com:5000/test_repo:push-test-admin: invalid reference format"} (Bad Request: 400)]
我的配置是否有问题

附言。 d-m-p版本:0.33.0

Maven版本(mvn-v):3.6.2


Docker版本:19.03.8

如果您向Docker dameon添加
--不安全注册表
,它是否有效@我已经将它添加到不安全的注册表中。我还尝试了同样的方法,在docker守护进程中添加或不添加不安全的注册表。仍然是相同的错误如果您向docker dameon添加
--unsecure registry
,它能工作吗@我已经将它添加到不安全的注册表中。我还尝试了同样的方法,在docker守护进程中添加或不添加不安全的注册表。还是一样的错误吗
DOCKER> REQUEST GET /v1.40/images/http%3A%2F%2Fregistry.my.com%3A5000%2Ftest_repo%3Apush-test-admin/json HTTP/1.1

[DEBUG] DOCKER> RESPONSE HTTP/1.1 301 Moved Permanently
Location: /v1.40/images/http:/registry.my.com:5000/test_repo:push-test-admin/json

[DEBUG] DOCKER> REQUEST GET /v1.40/images/http:/registry.my.com:5000/test_repo:push-test-admin/json HTTP/1.1

[DEBUG] DOCKER> RESPONSE HTTP/1.1 400 Bad Request
Api-Version: 1.40

[DEBUG] DOCKER> RESPONSE {"message":"no such image: **http:/registry.my.com:5000**/test_repo:push-test-admin: invalid reference format"}

[ERROR] DOCKER> Unable to check image [http://registry.my.com:5000/test_repo:push-test-admin] : {"message":"no such image: http:/registry.my.com:5000/test_repo:push-test-admin: invalid reference format"} (Bad Request: 400) [{"message":"no such image: http:/registry.my.com:5000/test_repo:push-test-admin: invalid reference format"} (Bad Request: 400)]