Configure Docker with Windows Terminal & WSL
In linux, it’s much easier to work with docker ‘cause Docker works native on linux. In windows we have to install WSL (Windows Sub System for Linux) which is inconvenient. If you are asking me why not using linux anymore :sad. It’s because i have to play Cyberpunk 2077
in windows :sad.
In this post, i will using terminal as Terminal
, WSL
as backend for Docker and Oh my Posh
for customize the Terminal
8 GB Ram installed
in your machine, or use linux with Docker native is much better choiceInstalltion
Install WSL
|
|
Then enable Virtual Machine feature
|
|
Dowload and install the Linux Kernel with this link
Make sure you set WSL 2 as your default version
|
|
Now go to Microsoft Store
and install the distro you like
Install Docker
Install Docker Desktop via Docker site
After install Docker Desktop
, open terminal and type this command:
|
|
If the console print as like as the pic below. Congratulation! You have done install Docker on windows
Pull your first image
|
|
Customize Windows Terminal with Oh My Posh
Too lazy to write this section, simply go to Oh my Posh
Troubleshoot
Again, if you get any trouble, feel free to contact me.
If you find my blog helpful, please consider sponsoring <3
Sponsor