Skip to content

rootless: Support pasta driver detection #51143

@vvoland

Description

@vvoland

Description

slirp4netns is deprecated in RHEL 10 and will be removed in future version in favor of pasta.

dockerd-rootless.sh should be adjusted to pick up the pasta driver if its installed:

if [ -z "$net" ]; then
if command -v slirp4netns > /dev/null 2>&1; then
# If --netns-type is present in --help, slirp4netns is >= v0.4.0.
if slirp4netns --help | grep -qw -- --netns-type; then
net=slirp4netns
if [ -z "$mtu" ]; then
mtu=65520
fi
else
echo "slirp4netns found but seems older than v0.4.0. Falling back to VPNKit."
fi
fi
if [ -z "$net" ]; then
if command -v vpnkit > /dev/null 2>&1; then
net=vpnkit
else
echo "Either slirp4netns (>= v0.4.0) or vpnkit needs to be installed"
exit 1
fi
fi
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/rootlessRootless Modekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions