mauricioklein / docker-compose-api

A Docker Compose parser for Ruby
MIT License
33 stars 25 forks source link

Named (incremental) containers #13

Closed jeroenj closed 8 years ago

jeroenj commented 8 years ago

Right now docker decides what name a container gets. It would be nice if it was automatically set based on the label attribute. Doing that would obviously require the names to be incremental like how docker-compose does that.

mauricioklein commented 8 years ago

@jeroenj I agree with your suggestion, and I'm working to provide this enhancement as soon as possible.

I'll let you know once the work is done.

Thanks for helping improve this project!

mauricioklein commented 8 years ago

@jeroenj It was released a new gem version (1.0.5), with support to container's name on compose file. You can see an example of such settings on _spec/docker-compose/fixtures/compose1.yaml.

If not informed, compose uses container label as container name by default.

Please let me know if you face any issues or miss function in this feature.

Thanks for contributing to project!