-
Notifications
You must be signed in to change notification settings - Fork 823
Open
Description
I've tried running the script to install docker in WSL2 (Debian bookworm) and I got the following warning.
curl -fsSL https://get.docker.com/ -o get-docker.sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
WSL DETECTED: We recommend using Docker Desktop for Windows.
Please get Docker Desktop from https://www.docker.com/products/docker-desktop/
You may press Ctrl+C now to abort this script.
+ sleep 20
But I've modified the script locally to make is_wsl()
throw a false.
is_wsl() {
case "$(uname -r)" in
*microsoft* ) false ;; # WSL 2
*Microsoft* ) false ;; # WSL 1
* ) false;;
esac
}
And I was able to install docker in my Debian bookworm WSL2.
And it is even working perfectly fine.
wsl --version
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3447
I want to know why installing Docker in WSL2 is not supported and what issues do we face if someone installs Docker in WSL ?
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
linghengqian commentedon Sep 18, 2024
linghengqian commentedon Sep 18, 2024
advnpzn commentedon Sep 26, 2024
Wow, I guess I shouldn't have just assumed that after the 20 secs delay, it would just exit.
linghengqian commentedon Feb 24, 2025
Fixed by #475 .