MatthewKing / DeviceId

A simple library providing functionality to generate a 'device ID' that can be used to uniquely identify a computer.
MIT License
729 stars 118 forks source link

Dockersupport #26

Closed AlexSchuetz closed 1 year ago

AlexSchuetz commented 3 years ago

If the application runs in a docker container some functions won't work:

Maybe: head -1 /proc/self/cgroup|cut -d/ -f3 could help out with one of them.

MatthewKing commented 3 years ago

Hi Alex. Thanks for this report. It's a bit out of my wheelhouse but hopefully a contributor with linux & docker expertise can sort a PR. Otherwise I'll have a crack at it for the next major version at some point.