Skip to content

Instantly share code, notes, and snippets.

@wKich
Last active November 11, 2025 06:17
Show Gist options
  • Select an option

  • Save wKich/cb0392b6553c4c58f8c095dad54f983b to your computer and use it in GitHub Desktop.

Select an option

Save wKich/cb0392b6553c4c58f8c095dad54f983b to your computer and use it in GitHub Desktop.
containerd rootless + nerdctl
  • wget https://github.com/containerd/nerdctl/releases/download/v2.2.0/nerdctl-full-2.2.0-linux-amd64.tar.gz
  • tar Cxzvvf ~/.local/ nerdctl-full-2.2.0-linux-amd64.tar.gz
  • fish_add_path $HOME/.local/bin/
  • https://rootlesscontaine.rs/getting-started/common/
  • sudo loginctl enable-linger $(whoami)
  • systemctl --user start dbus
  • sudo apt install uidmap
  • sudo nvim /etc/apparmor.d/usr.local.bin.rootlesskit
abi <abi/4.0>,
include <tunables/global>

/home/fpv/.local/bin/rootlesskit flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/usr.local.bin.rootlesskit>
}
  • sudo systemctl restart apparmor.service
  • sudo nvim /etc/sysctl.d/99-rootless.conf
kernel.unprivileged_userns_clone=1
net.ipv4.ping_group_range = 0 2147483647
net.ipv4.ip_unprivileged_port_start=0
  • sudo sysctl --system
  • containerd-rootless-setuptool.sh install
  • nerdctl run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment