Skip to content

Instantly share code, notes, and snippets.

@NBoulfroy
Last active July 3, 2023 09:06
Show Gist options
  • Save NBoulfroy/9069f8a09af9f5cb04c68253fa3ac04f to your computer and use it in GitHub Desktop.
Save NBoulfroy/9069f8a09af9f5cb04c68253fa3ac04f to your computer and use it in GitHub Desktop.
[Failed to start docker.service: Transport endpoint is not connected] #docker #wsl2

Execute this commands like this to solve the error "Failed to connect to bus: Host is down".

  1. sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
  2. sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
  3. exec sudo nsenter -t $(pidof systemd) -m -p su - $LOGNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment