Docker - How to Move Docker to Another Drive on Windows

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • Discord: / discord
    Docker - How to Move Docker to Another Drive on Windows

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

  • @nicename29
    @nicename29 ปีที่แล้ว +45

    Heya Ppl, after doing this some might realize that their docker desktop is no longer working(stuck at docker desktop is loading).
    For me, this was the case. I checked "wsl -l -v"(in the command prompt) and realized that docker-desktop-data (the one we relocated) was the wrong version. To solve this I used the command "wsl --set-version docker-desktop-data 2". It should work for you too if you have the same problem. It might take some minutes but it will work!
    I found this solution purely through luck as I typed a command wrong and saw this command listed with other commands and tried it :)) hope it works for you

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

      AAAAAAA thank u helps me a lot

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

      thank you so much!

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

      wsl --import docker-desktop-data e:\docker-data\desktop e:\docker-data\dockerdesktop.tar --version=2
      we can add --version=2

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

      @@imperialsilver3936 :)

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

      Thank you, you saved me!

  • @uamurphy
    @uamurphy 3 หลายเดือนก่อน +6

    Wow, that man deserves a medal.
    I'm saying that as someone who has 128 GB SSD... you saved my nerves

  • @darkshoxx
    @darkshoxx 6 หลายเดือนก่อน +6

    THESE are the tutorials we need. Easy to follow. No 5 minute intro. No additional BS. Video title exactly what it says on the tin. THANK YOU

  • @-Havoc404
    @-Havoc404 3 หลายเดือนก่อน +2

    You're a life saver. None of the installation instructions to tell docker to use a different directory worked, and my C: drive is partitioned down so having docker containers on it immediately filled it and blue screened my computer

  • @user-qe4fn6yz9j
    @user-qe4fn6yz9j ปีที่แล้ว +3

    Usually I don't leave comments, but everything is simple and to the point, you helped a lot, thank you!)

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

    Thank you so much for this, it was simple and worked right off the bat. After doing 2 or 3 failed attempts with written tutorials that had all these convoluted reason and continuously breaking my install, it turns out the simplest worked best. Thanks again for making this!

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

    Thank you. I've been trying to migrate my docker containers with persistent data from an old windows laptop to a new windows laptop and what should be a 1 click export/import is basically impossible. Any attempt to google the solution gives you instructions that are always incomplete or are excessively linux related.
    While not technically "one click" this is the only thing that actually worked.

  • @davidtindell950
    @davidtindell950 6 หลายเดือนก่อน +1

    Thank You ! It all worked on my machine. Now, I want to try it ACROSS machines. As a NEW SUBSCRIBER, I would like to see another vid on backing-up / restoring individual containers under Windows 10 Docker Desktop !?!

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

    Awesome, I needed this because the desktop-data folder was located on my SSD which was getting close to full capacity lol.

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

    I got it after searching for many hours and many times to reinstall, worked like a charm! Thanks a lot! After struggling to reset visual studio, android studio, docker in disk D, I can now spare my disk C for my database

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

    Greate video Dino, simple, direct and complete. Thanks for sharing.

  • @vidpro27
    @vidpro27 10 หลายเดือนก่อน

    wow, I've spent the last week trying to figure this out without success. I followed your video and it worked without any issues, thank you!

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

    was * screwed up since 2 am
    tried everything on stackoverflow as well
    your build command saved me

  • @OmesaHD
    @OmesaHD 9 หลายเดือนก่อน +1

    thank you so much, a tutorial thats straight to the point. dont find those often anymore lmao

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

    Easy to understand, was quick to the point and worked! Thank you!

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

    guidance was clear, and worked perfectly. So glad I found his video.

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

    Thank you! only problem I had at the end was with the version, remember to execute: wsl --set-version docker-desktop-data 2

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

    Awesome, useful for me to move to a different drive for less wear and tear on the main drive. Using Kafka with Docker

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

    wow this is amazing help. kept struggling with managing C drive

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

    Thank you so much . I was literally going crazy cuz my c drive was almost full. Thank you so much😊

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

    I usually dont leave comment but your effort made me do it. Thanks man. Great work 💪💪

    • @DinosTechWorld
      @DinosTechWorld  7 หลายเดือนก่อน +1

      I appreciate that! Thank you.

  • @A.I.Office
    @A.I.Office 2 หลายเดือนก่อน

    Thank you so much for this tutorial! i've been looking for a way to do that for so long!

  • @munzertopu
    @munzertopu 6 หลายเดือนก่อน

    Worked like a charm. Thanks a ton for a simplified video.

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

    Great video, very clear and easy to understand. Thank you :D

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

    Thank you for your video. A few more questions.
    - How much space does your "docker-desktop" take on C:/ ?
    - from this moment on, when you create a new image, does it go on docker desktop data ?
    - WSL. Could that go on the D:/ drive too ?

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

    My imgs/containers were being deleted after each reboot of docker or windows, but i had modified daemon.json, (i changed the data-root property), switch it back as it was.
    Now this kind of unmounting/mounting works like a charm

  • @saif813
    @saif813 2 หลายเดือนก่อน

    It's a life saver! thank you so much!

  • @dizzysmit
    @dizzysmit 2 หลายเดือนก่อน

    thank you, it was very helpful!

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

    This broke my docker install and wsl. I can't do any wsl commands now without it hanging, not even wsl --shutdown and I have no idea how to fix it. Can't find a wsl process to kill. Help!

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

    Awesome! It worked. Very clear to understand. Thank you!

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

    Yeah!! I thougt my laptop was already tooo old, but nooo nooo it can still working good. Thank you!

  • @codevdone1504
    @codevdone1504 2 หลายเดือนก่อน

    Works perfectly thank you Sr 🙂

  • @sohelmaniyar4538
    @sohelmaniyar4538 2 หลายเดือนก่อน

    Thanks man It worked for me...

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

    It was very helpful. You saved a lot of my C space. Thanks Dino! Regards Revel!

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

    Thanks. I tried 5 other methods using docker daemon file, settings file etc. etc. did not work. This one seems to be going fine so far. The image is building and as long as it finishes and don't give disk space error I will be golden.

  • @Albinator_
    @Albinator_ 8 หลายเดือนก่อน

    This was very helpful, thank you so much!

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

    You make my day!
    That's a so great video!
    Thank you so much!

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

    Saved my day!

  • @arek9430
    @arek9430 10 หลายเดือนก่อน

    Solution valid, worked for me and thanks.

  • @nosaadel99
    @nosaadel99 6 หลายเดือนก่อน

    Finally solved it!!! Thanks a ton!!

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

    Thanks! This video made my day.

  • @SaeedNawaz
    @SaeedNawaz ปีที่แล้ว +4

    The video is excellent, but as mentioned by @nicename29 in his comment, you will see the Docker application won't be able to start its service. So you may have to run "wsl --set-version docker-desktop-data 2" and restart the application.

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

      i run the "wsl --set-version docker-desktop-data 2" and restart docker, found nothing in it.

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

      @@RJYL Docker Desktop can now utilize the WSL 2 Backend. In this configuration, it's necessary to relocate the WSL data.
      In my specific scenario (Windows 10 with Docker Desktop), none of the aforementioned solutions proved effective. However, I did discover a resolution. Please follow these commands:
      To alter the Docker directory to the D: drive (ensure Docker Desktop is closed beforehand):
      Terminate the WSL instance: wsl --shutdown
      Export the docker-desktop-data: wsl --export docker-desktop-data docker-desktop-data.tar
      Unregister the existing docker-desktop-data: wsl --unregister docker-desktop-data
      Reimport docker-desktop-data to the D: drive (you can specify your desired path): wsl --import docker-desktop-data D:\Your\Desired\Path\ docker-desktop-data.tar --version 2
      You can now safely delete the .tar file.

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

      @@RJYL that command is for someone whose docker is hanging/stuck at the loading screen. If you found nothing wrong before and after then you are good :)

  • @user-fe9hy4uq4i
    @user-fe9hy4uq4i ปีที่แล้ว +1

    Thank you!!!

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

    You saved my day, thank you

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

    Thank you sir. This video helped me a lot. 🙏

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

    Hello. Can you tell me what to do if when I enter the command “wsl -v -l” into the console, it displays everything except docker-dekstop-data. I'm guessing that my docker doesn't want to install it or something like that

  • @LozBezarius
    @LozBezarius 6 หลายเดือนก่อน

    Thxxx godd. You save my life

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

    Great stuff, thanks very much!

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

    thanks man that was a big help

  • @gn9607
    @gn9607 4 หลายเดือนก่อน

    it would help a lot if mention the cmnds in text below

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

    Thank you so much . This really helps.
    Just one question , would it also work if I want to move Ubuntu to another drive ?

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

    Great Video, thank you.

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

    thank you sir, saved me.

  • @user-py3nb2mb9r
    @user-py3nb2mb9r 5 หลายเดือนก่อน

    thank you so much

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

    Thank you very much! 🙏

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

    If I have Nextcloud running in docker, does it transfer nextcloud too?
    Im having trouble figuring out how to move nextcloud from my boot drive (C) into my actual storage drive.

  • @user-ze4bc1yy4w
    @user-ze4bc1yy4w ปีที่แล้ว

    Мужик спасибо большое, ты очень мне помог. Обнял приподнял)

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

    you are a real hero. thank you

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

    Thanks, man!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Thanks so much!

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

    Thank you!

  • @kmtsvetanov
    @kmtsvetanov 10 หลายเดือนก่อน

    best man ever!!!

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

    what if you're using hyber-v instead of wsl?

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

    How can I clear my disk of the original docker desktop data?

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

    thank you!

  • @rederecting...
    @rederecting... 4 หลายเดือนก่อน

    бро ты лучший спасибо большое я на связи если что

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

    Hi,when I try to unregister docker-desktop-data, i get this error message: "Server execution failed". Do you have a clue of why do I get this?

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

    Question, does unregistering free up the space on the previous store location or do I have to delete them manually

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

      It frees up the space.

  • @albert.j7846
    @albert.j7846 ปีที่แล้ว

    can you also move docker-desktop to another drive?

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

    If I install ubuntu it will be installed on a different drive ?

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

    i did this, and my docker never started anymore, it kept starting... I had to reinstall

  • @Bibs-gt9gf
    @Bibs-gt9gf ปีที่แล้ว

    does it not affect the volumes?

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

    When i run wsl --export it yields an error access is denied, how do i fix this?

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

      you are not adding the tar file termination

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

    what about Windows Containers ?

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

    I does not work for me

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

    Tried again. Doesn't work.

  • @nevose9046
    @nevose9046 2 หลายเดือนก่อน

    Nope, doesn't work.

  • @samanehgolnavaz7246
    @samanehgolnavaz7246 10 หลายเดือนก่อน

    So Useful thank u Dino

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

    Thank you very much

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

    Thanks a lot !