Adding these lines to the librenms service in docker-compose.yml:
sysctls:
- "net.ipv6.conf.all.disable_ipv6=0"
and running the same steps above gives a loopback address but no public address:
227: eth0@if228: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 state UP
inet6 fe80::42:acff:fe13:6/64 scope link
valid_lft forever preferred_lft forever
Running the same command on the the crazymax/alpine-s6 image that this is based on works fine:
docker run -it crazymax/alpine-s6:3.13-2.2.0.3 ash -c "ip -6 addr show dev eth0"
inet6 2a02:390:XXXX:0:d0c:242:ac11:2/80 scope global flags 02
valid_lft forever preferred_lft forever
inet6 fe80::42:acff:fe11:2/64 scope link tentative
valid_lft forever preferred_lft forever
It appears something is stopping the ipv6 interface config from happening
Behaviour
Steps to reproduce this issue
docker-compose up -d
docker-compose exec librenms ash -c 'ip -6 addr show dev eth0'
Expected behaviour
docker run -it crazymax/alpine-s6:3.13-2.2.0.3 ash -c "ip -6 addr show dev eth0"
):Actual behaviour
docker-compose exec librenms ash -c 'ip -6 addr show dev eth0'
Configuration
docker --version
) : Docker version 20.10.6, build 370c289docker-compose --version
) : docker-compose version 1.23.2, build 1110ad01uname -a
) : Linux observium 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linuxdocker-compose.yml
,.env
, .../etc/docker/daemon.json
docker-compose.yml
(As current example from https://github.com/librenms/docker/blob/master/examples/compose/docker-compose.yml)
.env
librenms.env
msmtpd.env
Docker info
Additional info
Adding these lines to the
librenms
service in docker-compose.yml:and running the same steps above gives a loopback address but no public address:
Running the same command on the the crazymax/alpine-s6 image that this is based on works fine:
docker run -it crazymax/alpine-s6:3.13-2.2.0.3 ash -c "ip -6 addr show dev eth0"
It appears something is stopping the ipv6 interface config from happening