Skip to content

JIB ignores the DOCKER_REGISTRY environment variable #1617

@johngmyers

Description

@johngmyers

Description

When docker.build.jib is set to true, the docker:push goal ignores the value of the DOCKER_REGISTRY environment variable. It instead tries to push to Docker Hub.

When docker.build.jib is set to false, it correctly pushes to the registry specifed in that environment variable.

Info

  • docker-maven-plugin version : 0.40.2
  • Maven version (mvn -v) : 3.5.0

  • Docker version :
  • If it's a bug, how to reproduce :
  1. Specify the image name without a registry.
  2. Do not specify the <registry> subelement of the <image> configuration.
  3. Do not specify a global configuration element <registry>
  4. Set the DOCKER_REGISTRY environment variable to a registry other than Docker Hub.
  5. Run mvn -Ddocker.build.jib=true docker:build docker:push

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions