Skip to content

Push images with dash in image namespace name #290

Description

@HelmutZechmann

Hi,

I am using the gradle-docker-plugin which is based on this library.

Using the plugin I observe the following problem (see issue 93):

When I try to push an image with a dash in the namespace name using DockerPushImage, I get the following error message:

Invalid namespace name (cdh-images), only [a-z0-9_] are allowed, size between 4 and 30

The follwoing does not work:

task pushWithDatasetManagementImage(type: DockerPushImage) {
    imageName '<repository-ip>:5000/cdh-images/dashes-are-allowed-here'
}

This works:

docker push <repository-ip>:5000/cdh-images/dashes-are-allowed-here

This works:

task pushWithDatasetManagementImage(type: DockerPushImage) {
    imageName '<repository-ip>:5000/cdh_images/dashes-are-allowed-here'
}

bmuschko commented the issue with:

The error message is triggered by the underlying Docker Java library. 

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