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

docker-compose.yml weirdness #993

Closed
MrMMorris opened this issue Feb 19, 2015 · 3 comments
Closed

docker-compose.yml weirdness #993

MrMMorris opened this issue Feb 19, 2015 · 3 comments

Comments

@MrMMorris
Copy link

So I have a docker-compose.yml that looks like this:

mongo:
    image: mongo:2.6
    command: "--smallfiles"
    volumes_from: data
    restart: always
    mem_limit: 100MB

data:
    image: mongo:2.6
    volumes: /data/db

When I run docker-compose up, I get this:

Service "mongo" mounts volumes from "d", which is not the name of a service or container.

Version: 1.1.0-rc2

Queh?

@dnephin
Copy link

dnephin commented Feb 19, 2015

volumes_from should be a list not a string. There's an issue open somewhere to improve validation around this kind of thing.

@MrMMorris
Copy link
Author

ah, thank you kindly!

@dnephin
Copy link

dnephin commented Feb 19, 2015

Related to #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants