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

Add runtime to create options #4080

Merged
merged 6 commits into from
Dec 18, 2020

Conversation

ancaantochi
Copy link
Contributor

@ancaantochi ancaantochi commented Dec 11, 2020

HostConfig properties used to be serialized/deserialized using Docker.DotNet.Models.HostConfig class which was missing some of the properties that where added to docker since HostConfig class was last update. In order to support all current properties and also future properties, HostConfig class was added to the project with a few properties that are directly used in code and all others were set in the OtherProperties with JsonExtendedData attribute to deserialize properties with no matching class member into the dictionary.

Having properties in the dictionary is causing issues when using iotedged version 1.0.9 and edgeAgent 1.0.10 and if the property is all lowercase, because iotedged will ignore it. To fix the issue I added all properties that HostConfig had in 1.0.9.

@ancaantochi ancaantochi marked this pull request as ready for review December 15, 2020 22:38
Copy link
Contributor

@darobs darobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're missing 2 fields, but everything else checks out.

Copy link
Contributor

@darobs darobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ancaantochi ancaantochi merged commit 624c514 into Azure:master Dec 18, 2020
@ancaantochi ancaantochi deleted the ancan/fix-create-options branch December 18, 2020 20:57
ancaantochi added a commit to ancaantochi/iotedge that referenced this pull request Dec 18, 2020
* Add HostConfig properties
ancaantochi added a commit to ancaantochi/iotedge that referenced this pull request Dec 18, 2020
* Add HostConfig properties
ancaantochi added a commit to ancaantochi/iotedge that referenced this pull request Dec 18, 2020
* Add HostConfig properties
kodiakhq bot pushed a commit that referenced this pull request Dec 21, 2020
kodiakhq bot pushed a commit that referenced this pull request Dec 21, 2020
gordonwang0 pushed a commit to gordonwang0/iotedge that referenced this pull request Jan 5, 2021
* Add HostConfig properties
gordonwang0 pushed a commit to gordonwang0/iotedge that referenced this pull request Jan 12, 2021
* Add HostConfig properties
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

Successfully merging this pull request may close these issues.

2 participants