Run the snmpbulkget in another ephemeral container:
$ docker run --network="container:snmpd" --rm -it snmptest:latest \
snmpbulkget -v2c -c public -Cn1 -Cr1 -Os localhost HOST-RESOURCES-MIB::hrSWInstalledTable
Result:
hrSWInstalledIndex.0 = INTEGER: 0
If these steps are not good enough for your processes I can try to reproduce it from a 17.10 virtual machine.
Download attached dockerfile and build a docker image
$ docker build -t snmptest:latest .
Start snmpd container:
$ docker run --name snmpd --rm -it snmptest:latest
Run the snmpbulkget in another ephemeral container: "container: snmpd" --rm -it snmptest:latest \ MIB::hrSWInstal ledTable
$ docker run --network=
snmpbulkget -v2c -c public -Cn1 -Cr1 -Os localhost HOST-RESOURCES-
Result: dex.0 = INTEGER: 0
hrSWInstalledIn
If these steps are not good enough for your processes I can try to reproduce it from a 17.10 virtual machine.