ubuntu / WSL

Ubuntu WSL image build and launcher code.
MIT License
152 stars 46 forks source link

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

Open linghengqian opened 4 months ago

linghengqian commented 4 months ago

cmd /c ver

Microsoft Windows [版本 10.0.22631.3880]

wsl --status

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

Did the problem occur during installation?

What happened?

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.
```bash
$ /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?

Steps to reproduce

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.