Hi,
I’d like to build a container that reads the host’s OS /proc/net/dev file for monitoring.
The container itself has it’s own /proc/net/dev file already though.
I’m thinking the correct approach would be to bind the host /proc/net/dev to something like /host/proc/net/dev in the container, then have the application code use that file.
Example:
sudo docker run --rm -it -v /proc/net/dev:/host/proc/net/dev ubuntu:latest bash
Do you think this is the correct approach?
Thanks!