, , , ,

How to install Docker on Windows ?

Posted by

This article will teach me how to install Docker on a Windows computer. By following this tutorial, I was able to install Docker on Windows quite simply.

Step 1: Go to this URL :- https://docs.docker.com/desktop/install/windows-install/

Step 2 : Next go to open turn windows features on or off

Step 3: Next to install Linux

Step 4: Next install downloaded file then go to Microsoft store and download ubuntu

Next click on ok

Next to open ubuntu and when you open first time its ask you put username and passoword put correctly then run below command

Pwd

Step 5: Then open windowsPowerShell

wsl -l -v

To check running background distribution version and states

Step 6 : After that download Click on run as administrator

After installation Start Docker Desktop

Step 7: Next to open docker

Click on accept button

Next to signin docker account

Then open wsl and run below command

docker run -d -p 80:80 docker/getting-started

Now its showing in containers and images sidebar also.

If you want to run project then run below code

docker run -p 8080:80 httpd

Run this in your browser

http://localhost:8080/
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x