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.