Closed twpedersen closed 1 year ago
I've tried to reproduce both w/ and w/o --net=host
and it works.
It seems you are not starting Redis server which is a prereq for ntopng to operate. Are you using the official Dockerfile provided at https://github.com/ntop/docker-ntop/blob/master/Dockerfile.ntopng?
BTW, sorry for the late reply, we somehow missed this message.
Hello, can I ask why redis is inside of the docker container? This doesn't make a lot of sense to me. I built a container without redis but it required ugly hacks / workarounds because the ntopng package depends on redis. Fixing this probably requires packaging changes (one option could be to make an ntopng-core
package without the redis dependency and install only this into the image and make an ntopng
package for regular users of Debian/Ubuntu that depends on both redis-server
and ntopng-core
).
Here's my ugly Dockerfile if anyone is interested (it basically creates a fake redis-server package to satisfy the dependency):
FROM debian:buster
MAINTAINER ntop.org
ARG DEBIAN_MIRROR=deb.debian.org
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN sed -i "s|deb.debian.org|${DEBIAN_MIRROR}|g" /etc/apt/sources.list && \
apt-get update && \
apt-get full-upgrade -y && \
apt-get -y -q install equivs wget lsb-release gnupg && \
wget -q http://apt-stable.ntop.org/buster/all/apt-ntop-stable.deb && \
dpkg -i apt-ntop-stable.deb && \
rm -fv *.deb && \
apt-get clean all
RUN apt-get update && \
cd /tmp && \
apt-cache show redis-server | while read -r line; do [ -z "$line" ] && break; printf "%s\n" "$line"; done > redis-server && \
sed -i 's|^Depends: .*|Depends: lsb-base (>= 3.2-14)|g' redis-server && \
equivs-build redis-server && \
dpkg -i ./redis-server_*.deb && \
apt-mark manual redis-server && \
apt-mark hold redis-server && \
apt-get install -y ntopng && \
apt-get remove -y equivs && \
apt-get autoremove -y && \
apt-get clean all && \
rm -fv *
EXPOSE 3000
CMD ntopng