Hope it is not something amiss with my config. But while testing a build with Singularity 2.2.99, I am getting a number of warnings about missing user and group. see below for details.
When I ran that Singularity definition file on a system with the dev code for the upcoming Singularity 2.3, I saw some warnings about /etc/group and /etc/passwd.
I reran the same build using 2.2.1 and don't see them.
In the resulting container build by "2.2.99", these number of system users in the passwd file were surprisingly slim:
Singularity topspin.4.img> cat /etc/passwd
systemd-bus-proxy:x:999:997:systemd Bus Proxy:/:/sbin/nologin
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
polkitd:x:998:996:User for polkitd:/:/sbin/nologin
tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
> sudo -E singularity bootstrap topspin.img Singularity | tee sing.log 2>&1
Building from bootstrap definition recipe
Adding label: 'SINGULARITY_CONTAINER_UUID' = 'ecafe2ee-cc49-43c2-8869-9367d738a2e8'
Adding label: 'SINGULARITY_DEFFILE' = 'Singularity'
Adding label: 'SINGULARITY_BOOTSTRAP_VERSION' = '2.2.99'
Adding label: 'SINGULARITY_DEFFILE_BOOTSTRAP' = 'yum'
Adding label: 'SINGULARITY_DEFFILE_OSVERSION' = '7'
usage: add.py [-h] [--key KEY] [--value VALUE] [--file FILE] [-f]
add.py: error: unrecognized arguments: https
/e/libexec/singularity/bootstrap-scripts/pre.sh: line 64: basearch: unbound variable
Adding base Singularity environment to container
Found YUM at: /usr/bin/yum
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package centos-release.x86_64 0:7-3.1611.el7.centos will be installed
---> Package coreutils.x86_64 0:8.22-18.el7 will be installed
--> Processing Dependency: rtld(GNU_HASH) for package: coreutils-8.22-18.el7.x86_64
--> Processing Dependency: ncurses for package: coreutils-8.22-18.el7.x86_64
--> Processing Dependency: librt.so.1(GLIBC_2.3.3)(64bit) for package: coreutils-8.22-18.el7.x86_64
--> Processing Dependency: libpthread.so.0(GLIBC_2.3.2)(64bit) for package: coreutils-8.22-18.el7.x86_64
--> Processing Dependency: libpthread.so.0(GLIBC_2.2.5)(64bit) for package: coreutils-8.22-18.el7.x86_64
Transaction Summary
================================================================================
Install 91 Package(s)
Total download size: 49 M
Installed size: 246 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 5.3 MB/s | 49 MB 00:09
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
^M Installing : libgcc-4.8.5-11.el7.x86_64 1/91
^M Installing : ncurses-base-5.9-13.20130511.el7.noarch 2/91
^M Installing : centos-release-7-3.1611.el7.centos.x86_64 3/91
^M Installing : setup-2.8.71-7.el7.noarch 4/91
warning: /etc/group created as /etc/group.rpmnew
warning: /etc/hosts created as /etc/hosts.rpmnew
warning: /etc/passwd created as /etc/passwd.rpmnew
# don't see these files inside the container when done #
^M Installing : tzdata-2016g-2.el7.noarch 5/91
^M Installing : filesystem-3.2-21.el7.x86_64 6/91
Installing : util-linux-2.23.2-33.el7.x86_64 8/8
warning: group tty does not exist - using root
chown: invalid user: ‘root:root’
Verifying : libsemanage-2.5-5.1.el7_3.x86_64 1/8
...
Installing : sysvinit-tools-2.88-14.dsf.el7.x86_64 75/318
warning: group tty does not exist - using root
Installing : hostname-3.13-3.el7.x86_64 76/318
...
Installing : 1:cups-libs-1.6.3-26.el7.i686 248/318
useradd: group '100' does not exist
useradd: the GROUP= configuration in /etc/default/useradd will be ignored
Installing : polkit-0.112-11.el7_3.x86_64 249/318
...
Installing : initscripts-9.49.37-1.el7.x86_64 266/318
chown: invalid user: ‘root:utmp’
Installing : kernel-3.10.0-514.10.2.el7.x86_64 267/318
Installing : systemd-sysv-219-30.el7_3.7.x86_64 268/318
Installing : ghostscript-cups-9.07-20.el7_3.3.x86_64 269/318
Installing : 1:cups-1.6.3-26.el7.x86_64 270/318
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
warning: user lp does not exist - using root
warning: group sys does not exist - using root
warning: group lp does not exist - using root
warning: user lp does not exist - using root
warning: group sys does not exist - using root
warning: group lp does not exist - using root
warning: group lp does not exist - using root
Installing : cups-pdf-2.6.1-7.el7.x86_64 271/318
pgrep: invalid user name: root
Installing : mdadm-3.4-14.el7_3.1.x86_64 272/318