Skip to content

Instantly share code, notes, and snippets.

@lukasnellen
Last active February 12, 2022 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukasnellen/243f923dd31db5060833580a25eeeb8b to your computer and use it in GitHub Desktop.
Save lukasnellen/243f923dd31db5060833580a25eeeb8b to your computer and use it in GitHub Desktop.
Enable singularity v3 container --fakeroot on debian

Singularity version 3 container --fakeroot

The --fakeroot option to some of the singularity 3 commands requires two things to work

  • Properly configured UID and GID mapping in /etc/sub[ug]id. This is done by default on debian stretch (9) and buster (10) and other recent distributions.
  • The aility to create a process in a user namespace. On debian, this requires setting kernel.unprivileged_userns_clone = 1 in /etc/sysctl.conf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment