Closed MadhavJivrajani closed 3 years ago
I looked this up a bit, haven't tried any of this yet. Apparently, mounting /proc
inside the container does not provide details of the host. The alternative is to mount the whole root FS as read-only in the container (ref).
It might be only for the hostname, I'm not sure yet. I can take up this issue if no one else has taken it up for a few days.
Ohhh that makes sense, hmm, my bad
Mounting the whole root file system could be an option, maybe qualifying the mount as read only as well.
Okay so I did a little digging, cAdvisor
also mounts the entire root file system for this purpose, followed by a read-only qualification. That might be the way to go!
@Samyak2 looks like you can take this up!
Describe the solution you'd like Have a Dockerfile for grofer for ease of use.
Additional context
gopsutil
to fetch metrics,/proc
and/sys
might be a good starting point.