Install Docker and Kubernetes on Windows Subsystem for Linux (WSL). No Docker Desktop Required!

Описание к видео Install Docker and Kubernetes on Windows Subsystem for Linux (WSL). No Docker Desktop Required!

Docker Desktop is undoubtedly fantastic, but sometimes, you want more finesse to your container development experience. In this video, we'll show how to effortlessly set up Docker and Kubernetes using familiar Windows tools like the Windows Subsystem for Linux (WSL), MicroK8S, and the sweet allure of Chocolatey. Whether a battle-hardened pro or a curious newcomer, this tutorial is your passport to unlocking a great alternative without hassles!

00:00 – Introduction
01:05 – An Overview of the Tools

#### Installing WSL ####
02:23 – Install WSL from Programs and Features
02:23 – Install Ubuntu From the Microsoft Store
04:42 – Start WSL
05:31 – Enable systemd

sudo nano /etc/wsl.conf
[boot]
systemd=true

#### Installing and Configure Docker ####
06:43 – Install Docker Engine
curl -fsSL https://get.docker.com -o get-docker.sh
chmod +x get-docker.sh
sudo ./get-docker.sh

08:19 – Configure Docker to Start a TCP Socket for External Clients
sudo nano /lib/systemd/system/docker.service

10:02 – Install Chocolatey on Windows
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/inst...)

10:51 – Install the Docker CLI
choco install docker-cli

11:25 – Configure the Docker CLI to Talk to the Docker Engine
$env:DOCKER_HOST = 'tcp://123.123.123.123:2375'

#### Installing Kubernetes ####
15:50 – Install Snapcraft
sudo apt-get install snap

16:43 – Install MicroK8S (Kubernetes)
sudo snap install microk8s –classic

19:17 – Export the Kubernetes Config
microk8s config config

21:40 – Install the Kubernetes CLI (kubectl) with Chocolatey
choco install kubernetes-cli

23:10 – Merge the MicroK8S Config with the Kubectl Config

$env:KUBECONFIG = 'c:\users\blaize\.kube\config;c:\users\blaize\.kube\microk8s1'
kubectl config view --flatten newconfig
Don’t forget to rename new config to replace the old config and reset the KUBECONFIG variable.
25:26 – Set the Kubernetes Context
kubectl config use-context microk8s

#### Test Docker and Kubernetes ####
26:59 – Test Docker
28:50 – Test Kubernetes
30:32 -- Conclusion


---------------------------------

Blaize’s Website: https://www.blaize.net
Blaize’s Twitter:   / theonemule  

Music: "Chill Ambient" by Coma-Media https://pixabay.com/music/upbeat-chil...

#WindowsServer #WindowsServer2008 #Docker #Container #NoVNC #VNC #Webbrowser

Комментарии

Информация по комментариям в разработке