WSL2 Ubuntu Rootless Installation Issue

Ubuntu 20.04.4 LTS
Docker Desktop

I’m trying to setup a rootless daemon for a non-sudo user but I’m running into installation issues - Docker runs fine as sudo user, but I want to avoid giving my non-sudo user sudo permissions to keep it isolated.

Following the official guidance I installed uidmap and dbus-user-session successfully. I checked and overlay2 is being used.

The issue comes when running ‘sudo apt-get install -y docker-ce-rootless-extras’, which produces:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package docker-ce-rootless-extras

Alternatively trying ‘curl -fsSL | sh’ in the non-sudo account produces:

Installing stable version 20.10.17

Executing docker rootless install script, commit: b2e29ef

grep: /lib/modules/ No such file or directory

Missing system requirements. Please run following commands to

install the requirements and run this installer again.

Alternatively iptables checks can be disabled with SKIP_IPTABLES=1

cat <<EOF | sudo sh -x

modprobe ip_tables

All help and guidance much appreciated. Thanks!