WSL2 / Docker Dev / Alpine 3.20 - How to use¶
The following info was pulled from latest release v0.2.
How to use¶
Short and simple instructions, generated per each release, on how to import configure and use the dev focused WSL images with docker engine embedded.
Start a new Windows shell/terminal and download WSL docker dev distribution¶
curl.exe -o wsl-docker-dev-alpine-3.20-v0.2.tar.gz https://gitlab.com/api/v4/projects/61347177/packages/generic/v0.2/v0.2/wsl-docker-dev-alpine-3.20-v0.2.tar.gz
Ensure your default WSL version is 2¶
Import WSL docker dev distribution with a custom name¶
Note: format is wsl --import <custom-distro-name> <data-folder-for-wsl> <downloaded file>
Post-import steps¶
Optionally set new distro to be WSL command default¶
Note: Windows terminal follows it's own default WSL.
Start up new and ready wsl2 docker dev distro in linux home folder¶
Things to test or look into¶
docker ps
,docker compose
,docker-dev info
.- Developing with VSCode in WSL
- Get started with Devcontainers in WSL
- Try a Rust devcontainer:
git clone https://gitlab.com/geekstuff.dev/playground/rust-cli.git
code -n rust-cli/
For further info on how this was built and how to use it, see this project source code and the common/dev-setup project.
Propose changes to this page