馃摑 Preliminary Checks
馃憖 What Happened?
|
CONTAINER_IP=$(ip addr show "${NETWORK_INTERFACE}" | \ |
|
grep 'inet ' | sed 's|[^0-9\.\/]*||g' | cut -d '/' -f 1) |
|
CONTAINER_NETWORK=$(echo "${CONTAINER_IP}" | cut -d '.' -f1-2).0.0 |
|
|
|
if [[ -z ${CONTAINER_IP} ]]; then |
|
_log 'error' 'Detecting the container IP address failed' |
|
_dms_panic__misconfigured 'NETWORK_INTERFACE' 'Network Setup [docker_permit]' |
|
fi |
will cause a crash when the container is attached to an IPv6 only network.
The whole crash could also have been prevented in the first place because by default PERMIT_DOCKER is set to none and therefore no IP resolution is needed in the first place.
馃憻 Reproduction Steps
- Create a IPv6 only network using for example:
docker network create --ipv4=false --ipv6 traefik-mail
- Attach the docker mailserver container to it
馃悑 DMS Version
15.1.0
馃捇 Operating System and Architecture
irrelevant
鈿欙笍 Container configuration files
馃摐 Relevant log output
馃摑 Preliminary Checks
馃憖 What Happened?
docker-mailserver/target/scripts/startup/setup.d/networking.sh
Lines 16 to 23 in 0f5763c
will cause a crash when the container is attached to an IPv6 only network.
The whole crash could also have been prevented in the first place because by default PERMIT_DOCKER is set to
noneand therefore no IP resolution is needed in the first place.馃憻 Reproduction Steps
docker network create --ipv4=false --ipv6 traefik-mail馃悑 DMS Version
15.1.0
馃捇 Operating System and Architecture
irrelevant
鈿欙笍 Container configuration files
馃摐 Relevant log output