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 repository name (Docker_app), only [a-z0-9-_.] are allowed #1012

Closed
EwanValentine opened this issue Feb 24, 2015 · 9 comments
Closed

Comments

@EwanValentine
Copy link

I keep getting errors such as Invalid repository name (Docker_app), only [a-z0-9-_.] are allowed

Here's my fig.yml:

app:
  build: app/
  links:
    - redis
    - mysql
  volumes:
    - ./app/project:/var/www

nginx:
  build: nginx/
  ports:
    - 8080:80
  links:
    - fpm
  volumes_from:
    - app
  environment:
    <APP_SERVER_NAME>: dev-machine

fpm:
  build: fpm/
  links:
    - redis
  volumes_from:
    - app
  environment:
    APP_SERVER_NAME: dev-machine

mysql:
  image: mysql:latest
  ports:
    - 3363

redis:
  image: redis:latest
  ports:
    - "6379:6379"

Cheers!

@thaJeztah
Copy link
Member

I think this issue is fixed in the latest builds, but as a workaround, rename your project directory from Docker to docker (lowercase).

@kojiromike
Copy link

…Or just set the environment variable FIG_PROJECT_NAME

@thaJeztah
Copy link
Member

Both options should work as a workaround.

I checked, and it seems this is not yet fixed, but this issue is a duplicate of #655, @EwanValentine if you agree, could you close this issue so that the discussion can take place on a single location and keep the issue tracker "clean"? Thanks!

@aanand
Copy link

aanand commented Feb 24, 2015

Also, this was fixed in #568

@aanand
Copy link

aanand commented Feb 24, 2015

@EwanValentine Give Compose 1.1.0 RC2 a try, it contains the fix: https://github.com/docker/fig/releases/tag/1.1.0-rc2

@thaJeztah
Copy link
Member

Ah, thanks @aanand I seemed to remember it was, but couldn't find the PR.

@EwanValentine
Copy link
Author

Ohhhhh yeah! Perfect, thanks folks! :)

@cddr
Copy link

cddr commented May 26, 2015

This seems broken again on 1.2.0

Whats more there appears to be an inconsistency in the format of names that accepted. For example first, using "foo_bar", I get...

vagrant@vagrant:~$ docker-compose up
Invalid service name "foo-bar" - only [a-zA-Z0-9] are allowed

...so I can go with FooBar then right? Nope.

vagrant@vagrant:~$ docker-compose up
Recreating vagrant_db_1...
Creating vagrant_FooBar_1...
Building FooBar...
Invalid repository name (vagrant_FooBar), only [a-z0-9-_.] are allowed

@aanand
Copy link

aanand commented May 26, 2015

@cddr You're describing a different problem (uppercase characters in service names, not project names). See #1416.

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

5 participants