Azure-docs: createOptions needs proper documentation

Created on 28 Feb 2020  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

Relevant Azure Service or Technology: IoT Edge Module
Published Documentation: https://docs.microsoft.com/en-us/azure/iot-edge/module-edgeagent-edgehub
Feedback:

There is zero documentation or examples from Microsoft on how to properly configure the createOptions feature to send flags to docker. The current documentation links you directly to Docker's explanation of the "Create Container" properties, but the mapping between Microsoft's createOptions and Docker's properties are not entirely 1:1.

Please provide detailed documentation, along with proper examples, of the most used "docker run" parameters that createOptions supports, such as:

  • Mapping host port to container port
  • Mapping a host path to a container volume (do we use "Volumes {}" or "HostConfig { Binds [] }" ?)
  • Running a docker container as a non-priveleged user (instead of root)
  • Passing EULA, Billing, and ApiKey parameters for Microsoft Cognitive Services

Thank you.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri3 assigned-to-author doc-idea iot-edgsvc triaged

All 7 comments

@Tam66662 Thank you for your feedback, our team will further look into it and get back to you at the earliest.

@Tam66662 I have assigned the issue to the content author to evaluate and update as appropriate.

@Tam66662 Thanks for creating this issue, and especially thank you for including createOptions scenarios that you want to use. We've heard similar feedback from other users, and have plans to work on this content. I'll update this issue when there's something published for you to take a look at.

Adding on that I would like to see examples for mapping devices...for example a USB camera.

@kgremban Thanks for the doc update. Just wanted to check if this issue can be closed.

@AshokPeddakotla-MSFT Thanks for the reminder.

@Tam66662 I added a new article providing some standard information about formatting createOptions, and samples from some common scenarios: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-use-create-options. This is definitely a work in progress, as we'll be building out the content to reflect additional scenarios (including @ckcampbell248's request for accessing external hardware) but I wanted to check in with you to see if this new article answers your core request for information about configuring and formatting create options?

@kgremban Thank you for doing this. The link you provided was very helpful and informative and covers my core request. I appreciate the new documentation!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

monteledwards picture monteledwards  Â·  3Comments

Favna picture Favna  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments