- Install recent version of distrobox.
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- --prefix ~/.local- Add line to ~/.bashrc:
export PATH=$HOME/.local/bin:$PATH- Add lines to ~/.distroboxrc:
xhost +si:localuser:$USER
export PIPEWIRE_RUNTIME_DIR=/dev/null
container_user_custom_home="$HOME/.local/share/container-home-test"- Create distrobox container with latest ubuntu:
distrobox-create --additional-packages systemd docker --init --unshare-all -n test8 -i ubuntu
distrobox enter test8-
(Inside container test8) Install docker with instructions: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
-
(Inside container test8) Enable and start docker service:
sudo systemctl enable docker
sudo systemctl start docker