This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed.
๐ณ SNMP daemon (snmpd) Docker image based on Alpine Linux.
If you are interested, check out my other ๐ณ Docker images!
๐ก Want to be notified of new releases? Check out ๐ Diun (Docker Image Update Notifier) project!
- SNMP daemon patched to be able to monitor on CoreOS (use
/rootfs/{dev|etc|proc|sys}
) - Fix CVE-2015-5621
- IPv6 disabled
161/udp
: snmpd UDP listen port
โ ๏ธ 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 \
crazymax/snmpd:latest
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 \
crazymax/snmpd:latest
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
All kinds of contributions are welcome ๐! The most basic way to show your support is to star ๐ the project, or to raise issues ๐ฌ You can also support this project by becoming a sponsor on GitHub ๐ or by making a Paypal donation to ensure this journey continues indefinitely! ๐
Thanks again for your support, it is much appreciated! ๐
MIT. See LICENSE
for more details.