SNMP daemon (snmpd) Docker image based on Alpine Linux.
- Net-SNMP 5.8 daemon patched to be able to monitor on CoreOS (use
/rootfs/{dev|etc|proc|sys}
) - Fix CVE-2018-18066
- IPv6 disabled
161/udp
: snmpd UDP listen port
warning: snmpd has been patched to use /rootfs/{dev|etc|proc|sys}
.
Docker compose is the recommended way to run this image. Edit the compose file with your preferences in examples/compose and run the following command :
$ docker-compose up -d
$ docker-compose logs -f
You can also use the following minimal command :
$ docker run -d --name snmpd \
--privileged \
-p 161:161/udp \
-v /:/rootfs:ro \
-v /etc/localtime:/etc/localtime:ro \
nbharadwaj/net-snmpd:0.1
You can also mount your own snmpd.conf
:
$ docker run -d --name snmpd \
--privileged \
-p 161:161/udp \
-v /:/rootfs:ro \
-v /etc/localtime:/etc/localtime:ro \
-v $(pwd)/snmpd.conf:/etc/snmpd.conf \
nbharadwaj/net-snmpd:0.1
If you've got the following error :
Cannot statfs /rootfs/proc/sys/fs/binfmt_misc: Symbolic link loop
Restart this service :
systemctl restart proc-sys-fs-binfmt_misc.mount
To upgrade, pull the newer image and launch the container :
docker-compose pull
docker-compose up -d
MIT. See LICENSE
for more details.