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 info more robust #3720
Docker info more robust #3720
Conversation
Simple and effective 👍 |
AwesomeVersion(data.get("ServerVersion", "0.0.0")), | ||
data.get("Driver", "unknown"), | ||
data.get("LoggingDriver", "unknown"), | ||
data.get("CgroupVersion", "1"), |
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.
1 is what we want for cgroup version right?
Should we make this "0" to indicate a problem?
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.
The problem is: It doesn't have to be a problem?
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.
If its not a problem, this PR does not make sense
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.
in case of cgroup, no cgroup means v1
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.
the others can change on docker updates, at least we would start and not break
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.
btw, in future we support cgroup2 as well
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.
There are 2 things:
- Docker doesn't provide the info
- The cgroup version wrong
This mitigates 1 (preventing it from crashing), but it also means we don't know anything about 2. We can't tell if it is wrong or right
This comment was marked as off-topic.
This comment was marked as off-topic.
This highlight people need to run supported installation methods; as set out by the requirements and keep their systems up to date. This didn't show up in tests either, probably because everyone who did tests (and the beta channel) did have their systems in check. If you want that level of control over your system, we suggest using a different installation method. For example, use the Home Assistant Container method instead. Locking down this PR for further comments, as the above comment is not related to this PR review. |
Proposed change
We should update min requirements to 20.10.0 of docker. Anyway this make it more stable between versions.
Type of change
Additional information
Checklist
black --fast supervisor tests
)If API endpoints of add-on configuration are added/changed: