K
K
KBBS2021-01-22 17:21:35
Docker
KBBS, 2021-01-22 17:21:35

What is the preferred way to run Docker on Windows 10 + WSL2?

Hello.

Got Windows 10. On board WSL2 with Ubuntu-20.04.
There is a need to run a couple of docker containers.

Method one:
Install Docker Desktop on Windows and tell it to use wsl2.

Method two:
Install docker directly on Ubuntu. Those. we will manage the docker from under wsl.

Tried both. Both work. I didn't notice much of a difference in performance.

But is there any difference? Or not?
Which of these two methods is preferable and why?

Thank you.

P.S. and not to get up twice.
Is there a regular way to store wsl files not on the system drive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Yakushenko, 2021-01-22
@KBBS

Which of these two methods is preferable and why?

This
Install Docker Desktop on Windows and tell it to use wsl2.

Simply because there is no difference, but there is a quite nice interface that can be useful in container management.
PS You look at
the name Create an
wsl --list
archive Delete the current installation Unpack a new one A little easier - use LxRunOffline
wsl --export Ubuntu d:\ubuntu.tar
wsl --unregister Ubuntu
wsl --import Ubuntu d:\Ubuntu d:\ubuntu.tar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question