Use Linux Containers with WSL2 on Windows

Nested

The Windows Subsystem for Linux (WSL) lets you integrate Linux commands directly into Windows Server and Linux containers and can even be used in Windows 10 Pro or Enterprise. I look at the necessary prerequisites, investigate how you can use Docker with WSL version 2 (WSL2), and even make use of Kubernetes in the process.

Linux programs and commands can be used almost seamlessly in Windows with the help of the Windows Subsystem for Linux – even in containers. Installing WSL is easy. Most distributions are free, and it can be included as quickly as it can be removed. Even Docker can be used with WSL.

Linux containers with WSL are only useful on Windows servers in the WSL2 version and currently not possible on Windows Server 2019. Windows 10 Update 2004 is the version of choice for WSL. The Long-Term Servicing Channel (LTSC) successor to Windows Server 2019, Windows Server 2022, also comes with WSL2.

Running Linux and Windows Together

After installing WSL, you can manage both Windows servers and local Windows workstations with Linux commands – a crucial point, especially for test and development environments, because containers from Windows 10 can then be transferred to production container hosts. Managing Linux servers on the network is also no problem, and even if Windows Server is installed on all systems, Windows and Linux containers can still be used in parallel.

Linux Bash can also be used to open Linux shells with Command Prompt or PowerShell. Alternatively, you can use Windows Terminal, which enables simultaneous sessions with PowerShell, Command Prompt, Azure Cloud Shell, and Linux Bash in various tabs. If you rely on containers on the network and are using Windows in parallel with WSL, you might want take a closer look at the terminal's capabilities. Companies that run their containers in parallel in Microsoft Azure benefit from additional functions. Different

...
Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=