schroot
Run a command or start an interactive shell with a different root directory. More customizable than chroot. More information: <https://wiki.debian.org/Schroot>.
RUN apt-get update && \
apt-get install -y schroot
RUN apt-get update && \
apt-get install -y schroot
RUN pacman -S --noconfirm schroot
RUN apt-get update && \
apt-get install -y schroot
RUN dnf install -y schroot
RUN apt-get update && \
apt-get install -y schroot