Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@litetex

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    area/networkingarea/scriptsbug/solution verifiedA bug report, whose bug is confirmed and a verified solution was proposedkind/bug/reportA report about a bugstale-bot/ignoreIndicates that this issue / PR shall not be closed by our stale-checking CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions