...
- Unpack CentOS 7 operating system files from the squashfs image. This will create a sub-directory squashfs-root and put all the files there. All files under this directory are own by you, not root.
/binsbin/unsquashfs -no-xattrs /tmp/centos_centos7.7.1908.sqsh
...
- When you are done, you can create a squashfs image, which can be use by Singularity at other places.
cd /tmp/squashfs-root; /sbin/mksquashfs . /tmp/my-container.img
...