-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Added devices config handling and device HostConfig handling #1400
Conversation
I think this is a good start. I believe we also need to update |
I've updated the pull request. |
@@ -342,6 +342,15 @@ dns_search: | |||
- dc2.example.com | |||
``` | |||
|
|||
### devices | |||
|
|||
Devices option. List of device mappings. Uses the same format as the --device docker client create option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- First sentence is unnecessary
--device
should be in backticks- Wrap to 80 chars please!
Thanks! For the sake of consistency, we should support a mapping as well as a list. Is that supported? If so, it should be documented. |
3ea10e7
to
53a08c0
Compare
I retract this, as I was thinking about environment variables. We don't support YAML mappings for volumes. Sorry for the noise. This looks good - just needs squashing to a single commit. |
Thanks for the feedback. I was just going to ask about the mapping. :) |
Signed-off-by: Dan Elbert <dan.elbert@gmail.com>
53a08c0
to
df87bd9
Compare
All squashed. Let me know if I missed anything else. |
LGTM |
1 similar comment
LGTM |
Added devices config handling and device HostConfig handling
I'm new to contributing to compose, but this is a stab at adding the device option to the yml config, as per issue #754.