Skip to content

Instantly share code, notes, and snippets.

@dmikoss
Last active March 16, 2024 13:34
Show Gist options
  • Save dmikoss/61802142291bbeca077e68a395e2a8ac to your computer and use it in GitHub Desktop.
Save dmikoss/61802142291bbeca077e68a395e2a8ac to your computer and use it in GitHub Desktop.
Instructions to run docker with distrobox in Ubuntu container (Steam deck) - draft

Instructions to run docker with distrobox in Ubuntu container (Steam deck) - draft

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

  2. (Inside container test8) Enable and start docker service:

sudo systemctl enable docker
sudo systemctl start docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment