Merge pull request #2629 from dbonev/2611-support-port-range-in-compose

Port range in exposed ports
This commit is contained in:
Joffrey F 2016-01-13 13:09:22 -08:00
commit c260eb910b
3 changed files with 34 additions and 1 deletions

View file

@ -38,7 +38,7 @@ DOCKER_CONFIG_HINTS = {
VALID_NAME_CHARS = '[a-zA-Z0-9\._\-]'
VALID_EXPOSE_FORMAT = r'^\d+(\/[a-zA-Z]+)?$'
VALID_EXPOSE_FORMAT = r'^\d+(\-\d+)?(\/[a-zA-Z]+)?$'
@FormatChecker.cls_checks(format="ports", raises=ValidationError)