docker-snmptrap/Dockerfile
dchidell 37a28b100b
Add custom mib support
Add mibs to the docker container using -v /my/mib/dir:/mibs

This is a bit untested...so we'll see how it goes.
2018-04-26 13:57:32 +01:00

12 lines
237 B
Docker

FROM alpine:latest
MAINTAINER David Chidell (dchidell@cisco.com)
RUN apk --no-cache add net-snmp
RUN echo 'disableAuthorization yes' > /etc/snmp/snmptrapd.conf
EXPOSE 162
VOLUME ["/mibs"]
CMD ["snmptrapd","-L","o","-f","-M","/mibs"]