Step-by-Step Guide to Installing Docker on Windows
Learn How Docker Eases Containerization on Windows with a Simple Installation and WSL2 Integration

Search for a command to run...
Learn How Docker Eases Containerization on Windows with a Simple Installation and WSL2 Integration

No comments yet. Be the first to comment.
Hoje é dia de explorar uma das novidades mais interessantes do ecossistema Google Cloud, anunciado durante o Google I/O desse ano (2026). É o Agent Studio, o coração low-code e visual do Gemini Enterp

Em novembro e dezembro será o momento de dar aquele gás nos estudos de tecnologias Microsoft. O Fabric Community, está disponibilizando conteúdo gratuito de certificações Azure, em português, e com voucher de 100% de desconto! Aprimore suas habilidad...

Como gerenciar e implementar sistemas de IA no Microsoft Azure em produção

Veja como a arquitetura orientada a eventos simplifica os pagamentos serverless.

IA no Azure: Código Terraform, Observação com OpenTelemetry e Mais

On this page
To begin the Docker installation process on Windows:

docker --version to check the Docker version.docker run hello-world.To set up Windows Subsystem for Linux 2 (WSL 2):
wsl --install.wsl --list --verbose in PowerShell to check installed distributions and versions.wsl --set-default-version 2.After installing Docker Desktop, configure its settings for optimal performance:
To limit resource usage, create a .wslconfig file in your user directory (C:\Users\YourUsername) with the following settings:
memory=4GB # Limits memory usage to 4GB
processors=2 # Limits to 2 virtual processors
swap=8GB # Sets swap space to 8GB
pageReporting=false # Retains allocated memory
localhostforwarding=true # Enables localhost forwarding from WSL to Windows
Ps. If you want to be more specific about resource limitations, use these commands, but be aware of what you really want:
# Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB
# Sets the VM to use two virtual processors
processors=2
# Specify a custom Linux kernel to use with your installed distros. The default kernel used can be found at https://github.com/microsoft/WSL2-Linux-Kernel
kernel=C:\\temp\\myCustomKernel
# Sets additional kernel parameters, in this case enabling older Linux base images such as Centos 6
kernelCommandLine = vsyscall=emulate
# Sets amount of swap storage space to 8GB, default is 25% of available RAM
swap=8GB
# Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx
swapfile=C:\\temp\\wsl-swap.vhdx
# Disable page reporting so WSL retains all allocated memory claimed from Windows and releases none back when free
pageReporting=false
# Turn off default connection to bind WSL 2 localhost to Windows localhost
localhostforwarding=true
# Disables nested virtualization
nestedVirtualization=false
# Turns on output console showing contents of dmesg when opening a WSL 2 distro for debugging
debugConsole=true
Restart Docker Desktop after making changes for them to take effect.
Go to the Docker settings, select Resources > WSL Integration and enable the version of Ubuntu you have installed.

