Let’s be honest: bare-metal Linux is often the goal. But if you are on a Windows machine for work, or navigating a gradual migration to Linux, you don’t have to compromise on your digital freedom or command-line workflow.
Until recently, running containers on Windows required installing heavy desktop wrappers or manual daemon setups inside a Linux distribution. That changed with the public preview of WSL Containers (wslc). Now, Windows includes a native, lightweight OCI-compatible container runtime managed straight from your host command line. No third-party engines, no licensing hoops, and zero background resource hogs to choke older hardware.
1. Grab the Pre-Release Kernel
Because this native container engine is a fresh feature, we need to tell the Windows Subsystem for Linux backend to pull down the cutting-edge preview builds.
- Open Windows PowerShell or Command Prompt as Administrator.
- Force WSL to opt into the pre-release update track:Why this works: Instead of waiting for the general fall release, this command reaches out to the upstream development branch and pulls down the updated kernel infrastructure, including the native container components.
wsl --update --pre-release - Completely flush the current virtualization state to let the updates take root:
wsl --shutdown
Close your terminal and reopen it. You have just upgraded your subsystem to support first-party container virtualization.
2. Meet the wslc Command Line
Once your system is initialized on the pre-release channel, a brand new binary appears in your environment path: wslc.exe (with a built-in convenience alias called container.exe). This tool talks directly to a dedicated, isolated Hyper-V micro-VM backend.
- Verify that the new engine is alive and kicking:
wslc version - Check out the command syntax:Why this matters: If your muscle memory is trained on Docker or Podman, you are already an expert here. The
wslc --helpwslcsyntax intentionally mirrors standard container commands (run,build,pull,logs), meaning you don’t have to relearn how to manage your development workflow.
Pro-Tip: Because
wslcspins up container isolation boundaries using lightweight, dedicated utility VMs rather than sharing a single global distribution space, it offers tighter security sandboxing. However, if you are running on an older machine with tight specs, remember that every standalone app or SDK session allocates its own slice of memory—so keep an eye on your resource usage!
3. Launch a Throwaway Container
The true power of a minimalist workflow is the ability to spin up an environment, run a test, and destroy it instantly without cluttering your operating system’s registry or file index.
Let’s fire up a clean, isolated environment to prove the system works:
- Execute a command inside a fresh, temporary container:Why this happens: The engine realizes you don’t have the image locally, securely pulls it down, and creates a sandbox. The
wslc run --rm -it ubuntu:latest bash--rmflag guarantees that the second you finish your work and typeexit, the container vanishes entirely from disk space. - Inside the prompt, verify your kernel is the genuine article:
uname -a - Type
exitto cleanly dismantle the container and return to your host prompt.
By bypassing third-party software, you’ve kept your OS clean, maintained a slim resource footprint to combat e-waste, and unlocked native command-line confidence using tools built straight into your system.