Installing Docker on Windows

Byul·2023년 6월 8일

docker

목록 보기
1/1

1. Open PowerShell as Administrator. You can do this by searching for "PowerShell" in the Start menu, right-clicking on "Windows PowerShell," and selecting "Run as administrator."

2. In the PowerShell window, run the following commands one by one:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

These commands enable the necessary Windows features for Docker to run properly.

3. Next, execute the following commands in PowerShell to set up Windows Subsystem for Linux (WSL) version 2 as the default version and update it:

wsl --set-default-version 2
wsl --update

4. After completing the previous steps, go to Docker's official website and download the Docker Desktop installer for Windows.

https://www.docker.com/products/docker-desktop/

5. Once the download is complete, run the installer and follow the on-screen instructions to install Docker Desktop on your Windows machine.

6. After the installation is finished, Docker Desktop should start automatically. Look for the Docker icon in your system tray (usually located in the bottom right corner of the screen). The icon will appear as a whale.

Congratulations! Docker is now successfully installed on your Windows machine.

To verify the installation, you can open PowerShell or any other terminal application and run the following command:

docker version

This command will display the version information for both the Docker client and server, confirming that Docker is installed and functioning correctly on your Windows system.

You can now start using Docker to build, run, and manage containers on your Windows machine.

profile
junior backend developer

0개의 댓글