Windows WSL 2 Docker Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ค. 2024
  • To run Docker on Windows, there’s few ways. You can either run it using the Docker legacy Hyper-V backend, or you can use WSL 2 which offers much better performance and stability.
    What is Windows Subsystem for Linux (WSL2)?
    The Windows System for Linux (WSL) lets you run a Linux environment directly on windows without needing to use virtual machines or dualboot setup. This allows you to fully take advantage of Linux directly on your Windows machine. Its faster and it consumes less resources than running a virtual machine.
    Its integrated, meaning that you can directly access all your files on your Windows machine.
    If you’re planning to run Docker on Windows, then its highly recommended you use WSL 2 for your Docker Desktop backend as users can leverage Linux workspaces and avoid having to maintain both Linux and windows build scripts.
    It also provides a much faster experience when using Docker. Without WSL 2, just starting docker takes almost up to minute, while with WSL 2, it takes less than 10 seconds.
    How to install WSL 2
    learn.microsoft.com/en-us/win...
    .wslconfig File
    memory=4GB
    processors=2
    swap=8GB
    blog post www.ahtcloud.com/windows-wsl-...
    wanna help support my channel ? buy me a coffee ☕️ www.buymeacoffee.com/emad.zaa...
    Follow us
    Github - github.com/emad-zaamout
    Chapters
    0:00 Introduction
    0:23 What is WSL 2?
    1:08 Installing WSL 2 on Windows 11.
    2:16 wslconfig
    3:43 Starter Commands
    6:16 Installing Docker on Windows 11
    6:54 Docker - Enable WSL 2
    7:25 VS Code WSL Plugin
    8:24 How to use Docker on Windows 11
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 16

  • @JoeKnowsGames
    @JoeKnowsGames ปีที่แล้ว +2

    I've been trying to figure this out on my own for about 5 hours of time. You got me going in one video. Well put together tutorial that even got me going on Windows 10. Thank you!

  • @mohamedjasim3916
    @mohamedjasim3916 ปีที่แล้ว +3

    Many thanks to you

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 ปีที่แล้ว +2

    very nice bro

  • @sorcererstone3303
    @sorcererstone3303 9 หลายเดือนก่อน

    In my VS Code, I cannot find WSL extension. I uninstalled and reinstalled VS Code, I still cannot find WSL extension. Does anyone know has WSL extension for VS Code has been renamed?

  • @lenka2471
    @lenka2471 ปีที่แล้ว +1

    Is a docker desktop needed? I'd like to avoid it as I've read its annoying...

  • @kishoreembeti2613
    @kishoreembeti2613 3 หลายเดือนก่อน

    Thank you

  • @jamols09
    @jamols09 5 หลายเดือนก่อน

    is composer install and npm not needed?

  • @karlson2804
    @karlson2804 7 หลายเดือนก่อน

    Can I install a WSL on D disc and it still will works?

  • @wariszargar6262
    @wariszargar6262 ปีที่แล้ว +2

    Thanks you very much, love from Pakistan. Please make more videos complete setup on window docker ngnix with multiple container .

    • @emadzaamout
      @emadzaamout  ปีที่แล้ว +1

      Hello friend. Thank you. I already have plans for that I am hoping to release one next week. It will be for docker nginx with php fpm and ob cache for a performance build.

    • @wariszargar6262
      @wariszargar6262 ปีที่แล้ว

      @@emadzaamout Thanks

    • @wariszargar6262
      @wariszargar6262 ปีที่แล้ว

      @@emadzaamout Just on request when you will create video using ngnix please explain details & from scratch no need to install separate composer etc. Only we setup docker & pull our image every thing will work perfectly. No need to install separate composer mysql ngnix etc.
      Thanks in advance.

  • @LindenMikus
    @LindenMikus ปีที่แล้ว +5

    Does this work without docker desktop? just using the docker engine

    • @jamols09
      @jamols09 5 หลายเดือนก่อน

      when you say docker engine you mean docker installed in the ubuntu ?

  • @superlay582
    @superlay582 11 หลายเดือนก่อน

    i'am error
    chown: invalid user: ‘emad:emad’