Docker Complete Setup on Windows (With WSL Ubuntu)



Learn how to setup perfect working environment with Docker and WSL Ubuntu.

Support me by subscribing – https://bit.ly/2xTQOI0

Docker is an amazing tool for development. But on Windows it might be tricky to setup it up and make it working.
In this video I will setup docker working environment on Windows, create and run docker images, enable WSL 2, Install Ubuntu in WSL 2 and connect Ubuntu with Docker Desktop on windows.
You will see all these steps in details.

Install Docker
https://docs.docker.com/desktop/windows/install/

Install WSL
https://docs.microsoft.com/en-us/windows/wsl/install

Table of contents
00:00 – Intro
00:30 – Prerequisites
01:36 – Install Docker Desktop
02:22 – Run Docker image
03:32 – Enable WSL
05:29 – Install Ubuntu in WSL
06:32 – Integrate WSL Ubuntu with Docker
07:24 – WLS Ubuntu and VSCode
08:04 – Install Laravel Using Sail
09:58 – Open Ubuntu FS in Windows Explorer
10:23 – Open WSL Ubuntu project in PHPStorm
11:41 – The End

Follow me on social media:

https://www.facebook.com/thecodeholic
https://www.instagram.com/thecodeholic/

Check my Github:
https://github.com/thecodeholic

source

22 thoughts on “Docker Complete Setup on Windows (With WSL Ubuntu)”
  1. I have an issue with docker when i accept terms i habe this problem : Docker desktop stopping. Does anyone know how to fix it please ?

  2. This is the best video on docker desktop and wsl. Short simple and to the point.
    Worked like a charm on Windows 11.

  3. i am getting an error : WSL integration with distro Ubuntu 20.04 unexpectedly stopped with exit code 1

  4. Many thanks for the video, I was searching why Docker requires WSL and how to integrate, your video is awesome 🙂

  5. Thank you! I had so much trouble with this trying to run Dall-e Mini on Ubuntu WSL. I'm unfamiliar with containers and fairly new in Linux and had a lot of errors when I tried to do what I thought would work. Its always a lot simpler than it seems lol

  6. I had docker working in my machine till a particular upgrade. After that it stopped working. it will never start. I had Virtualization enabled and i see that in BIOS and in the task manager as enabled. But Docker will not start and simply show as a"starting" and finally throw an error saying Virtualization is not enabled. I tried even Docker forum. but no help from anywhere. Any pointer will be a great help Codeholic

  7. when i run any command i get this error : error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json": open //./pipe/docker_engine: The system cannot find the file specified.

    i have reinstalled this so many times, only recently i am getting this issue.

  8. Hi @The Codeholic, just want to know how you can add setup existing laravel project on Docker, cuz I am windows and just started to learn Redis and it seems like it's not supported on windows, so I decided to start using docker.

  9. can you help me integrate wsl Ubuntu with docker. when i get to cat .bashrc file i get: no such file or directory. i have windows 11.

  10. I am currently following a SQL tutorial where the tutor installed docker with WSL2 and docker-compose.yml. I have some issues with opening docker-compose in cmd

  11. please, help me, why every time I run the ./vendor/bin/sail up command, I always get the following errors:

    => ERROR [ 2/11] WORKDIR /var/www/html 15.8s

    ——

    > [ 2/11] WORKDIR /var/www/html:

    ——

    failed to solve: write /var/lib/docker/buildkit/metadata_v2.db: read-only file system

  12. Question: what are down sides of building the image directly on windows (assuming i can still use the same dockerfile – and save the hassle of maintaing two)?

  13. Installing, this may take a few minutes…

    WslRegisterDistribution failed with error: 0x8000000d

    Error: 0x8000000d An illegal state change was requested.

    Press any key to continue… Please i get this error when trying to run Ubuntu for the first time

  14. Very good vid…can you have a video about slow docker..my php apache is very slow..i think it is something with the sessions but not sure…i dont have a solution yet

Leave a Reply

Your email address will not be published.

Captcha loading...