INNER CODE UNIT · Shell

COMPOSE

rootless-containers/usernetes · Makefile.d/detect-container-engine.sh:29

		COMPOSE=podman-compose
	fi
fi

# FLANNEL_IGNORE_IP_CHECKSUM is set to 1 when the container engine provides the network with slirp4netns.
# slirp4netns silently drops VXLAN packets with an unfilled UDP checksum,
# so the flannel.1 udev rule (Dockerfile.d/etc_udev_rules.d_90-flannel.rules)
# has to disable the checksum offloading.
# The variable can also be set manually to override the detection.
: "${FLANNEL_IGNORE_IP_CHECKSUM:=}"
if [ -z "${FLANNEL_IGNORE_IP_CHECKSUM}" ]; then
	case "${CONTAINER_ENGINE_TYPE}" in
	"podman")
		if [ "$(${CONTAINER_ENGINE} info --format '{{.Host.Security.Rootless}}/{{.Host.RootlessNetworkCmd}}' 2>/dev/null)" = "true/slirp4netns" ]; then
			FLANNEL_IGNORE_IP_CHECKSUM=1
		fi
		;;
	"docker" | "nerdctl")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…