ubuntu / ubuntu/WSL

Unable to use Docker Desktop installed from Deb on Ubuntu 22.04 WSL

Open
#486 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
200
Forks
53
PR merge metrics
No merged PRs in 30d

Description

cmd /c ver

Microsoft Windows [版本 10.0.22631.3880]

wsl --status

默认分发: Ubuntu-22.04
默认版本: 2

Did the problem occur during installation?
  • Yes
What happened?
  • Unable to use Docker Desktop installed from Deb on Ubuntu 22.04 WSL.
  • Install Docker Desktop using the following bash command.
sudo apt update && sudo apt upgrade -y
sudo apt install gnome-terminal ca-certificates curl -y
cd /tmp/
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
wget 'https://desktop.docker.com/linux/main/amd64/docker-desktop-amd64.deb?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-linux-amd64&_gl=1*qyahwa*_gcl_au*MTg4MDIzMDE0MS4xNzE5MjkzNTY0*_ga*NzIwMzIxMjc5LjE3MTkyMDk2NzU.*_ga_XJWPQMJYHQ*MTcyMTgxNzkyOC4zMy4xLjE3MjE4MTgyODYuNTYuMC4w' -O ./docker-desktop.deb
sudo apt-get install --fix-missing ./docker-desktop.deb -y
systemctl --user start docker-desktop
/opt/docker-desktop/bin/docker-desktop
  • At this time, Docker Desktop cannot be opened normally, and the following error is reported.
$ /opt/docker-desktop/bin/docker-desktop
[2024-07-24T11:03:35.110103898Z][docker-desktop] running under systemd
[2024-07-24T11:03:35.110671427Z][docker-desktop][E] dial unix /run/user/1000/bus: connect: no such file or directory
[main.main()
[       linux/backend/cmd/docker-desktop/main.go:20 +0x54
What was expected?
  • Use Docker Desktop installed from Deb normally on Ubuntu 22.04 WSL. Just like Docker Desktop installed natively on Windows 11.
Steps to reproduce
  • Execute the following command in the shell of the new Ubuntu 22.04.4 WSL instance.
sudo apt update && sudo apt upgrade -y
sudo apt install gnome-terminal ca-certificates curl -y
cd /tmp/
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
wget 'https://desktop.docker.com/linux/main/amd64/docker-desktop-amd64.deb?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-linux-amd64&_gl=1*qyahwa*_gcl_au*MTg4MDIzMDE0MS4xNzE5MjkzNTY0*_ga*NzIwMzIxMjc5LjE3MTkyMDk2NzU.*_ga_XJWPQMJYHQ*MTcyMTgxNzkyOC4zMy4xLjE3MjE4MTgyODYuNTYuMC4w' -O ./docker-desktop.deb
sudo apt-get install --fix-missing ./docker-desktop.deb -y
systemctl --user start docker-desktop
/opt/docker-desktop/bin/docker-desktop
Additional information
  • Null.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a fresh Ubuntu 22.04 WSL instance using the listed installation and startup commands. Start with /opt/docker-desktop/bin/docker-desktop and the systemd user startup path, then inspect the reported /run/user/1000/bus failure in the WSL environment. Done means Docker Desktop starts normally without the missing-bus error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux, ubuntu
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.