0xkoji Posted on May 20, 2024 • Edited on Oct 6, 2024 43 1 Setting Up Docker on WSL2 with Ubuntu 24.04: An Easy Guide #windows #ubuntu #docker Step1. activate WSL2 https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-1---enable-the-windows-subsystem-for-linux Step2. update WSL2 wsl --update Enter fullscreen mode Exit fullscreen mode Step3. install ubuntu # check available distributions wsl --list --online # install 24.04 wsl --install -d Ubuntu-24.04 Enter fullscreen mode Exit fullscreen mode Step4. install docker curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh # check docker version docker -v Enter fullscreen mode Exit fullscreen mode Step5. add your account to docker group sudo groupadd docker sudo usermod -aG docker $USER Enter fullscreen mode Exit fullscreen mode Optional change memory size New-Item ~/.wslconfig Enter fullscreen mode Exit fullscreen mode add memory info to .wslconfig [wsl2] memory=32GB Enter fullscreen mode Exit fullscreen mode shutdown wsl --shutdown Enter fullscreen mode Exit fullscreen mode Top comments (0) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)