Today I learned that distrobox mounts the host’s $HOME directory into the same path inside the container/box. Also when entering the box it sets all the hosts environment variables inside the container.
Some env variables are excluded from the list including HOME
, SHELL
AND HOSTNAME
and XDG*
.