Add mibs to the docker container using -v /my/mib/dir:/mibs This is a bit untested...so we'll see how it goes.
12 lines
237 B
Docker
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"]
|