In docker-entrypoint.sh of the confluencenode-6.15.3 image there is this line:
IP_ADDRESS=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
It seems to me that ifconfig is not installed in the container. At least in my environment I get this:
/work-private/docker-entrypoint.sh: line 11: /sbin/ifconfig: No such file or directory
I think this container is based on some openjdk container using Ubuntu and I found that ifconfig is not always available.
It works when I build my own image based on yours and add RUN apt-get update && apt-get -y install net-tools to my Dockerfile.
In
docker-entrypoint.sh
of the confluencenode-6.15.3 image there is this line:IP_ADDRESS=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
It seems to me that
ifconfig
is not installed in the container. At least in my environment I get this:I think this container is based on some openjdk container using Ubuntu and I found that
ifconfig
is not always available.It works when I build my own image based on yours and add
RUN apt-get update && apt-get -y install net-tools
to my Dockerfile.