Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid service name. Valid characters are [a-zA-Z0-9] #179

Closed
pdehaan opened this issue Jan 21, 2016 · 1 comment
Closed

Invalid service name. Valid characters are [a-zA-Z0-9] #179

pdehaan opened this issue Jan 21, 2016 · 1 comment

Comments

@pdehaan
Copy link

pdehaan commented Jan 21, 2016

Steps to reproduce:

Try and validate the following YAML business:

db:
    image: postgres:9.3

frontend_watcher:
    extends:
        file: docker-compose-base.yml
        service: frontend-watcher

server:
    extends:
        file: docker-compose-base.yml
        service: server
    links:
        - db
        - frontend_watcher

Actual results:

"Invalid service name. Valid characters are [a-zA-Z0-9]"

Expected results:

It should probably allow hyphens and underscores. I haven't been able to find an official spec on container naming yet, but this is the closest I've gotten:

docker/compose ./compose/config/validation.py:40:

VALID_NAME_CHARS = '[a-zA-Z0-9\._\-]'
@pdehaan
Copy link
Author

pdehaan commented Jan 21, 2016

Actually, this is probably a dupe of CenturyLinkLabs/lorry#45 and this is an API issue.

@pdehaan pdehaan closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant