Skip to content

bug report: Crash when running on IPv6 only network - "Detecting the container IP address failed"聽#4634

Description

@litetex

馃摑 Preliminary Checks

  • I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.
  • I will disclose any AI assistance I have used with the information I provide in my report, so that I do not waste the time of humans trying to help me.

馃憖 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

  1. Create a IPv6 only network using for example: docker network create --ipv4=false --ipv6 traefik-mail
  2. Attach the docker mailserver container to it

馃悑 DMS Version

15.1.0

馃捇 Operating System and Architecture

irrelevant

鈿欙笍 Container configuration files

馃摐 Relevant log output


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions