Skip to content

Change docker label format. Should not support bracket chars #30

@mattmcclean

Description

@mattmcclean

Hi,

I am trying to use this sidecar container in an architecture with Amazon EC2 Container Service (ECS). When I try to configure an ECS task definition with the label format connect[8081]=stock-price.service.consul it gives the following error message:

Docker label key connect[8081] contains invalid characters, does not match pattern ^[a-z0-9-.]+$

According to the docker spec the ECS service is correct in checking that the labels contain only lower-cased alphanumeric characters, dots and dashes (see: https://docs.docker.com/engine/userguide/labels-custom-metadata/). It seems however that docker engine is not strict in enforcing this.

Is there any chance this can be changed to support valid Docker tag as per the spec?

Metadata

Metadata

Assignees

No one assigned

    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