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

  Рет қаралды 7,865

Tech on Fire

Tech on Fire

Күн бұрын

Пікірлер: 24
@Dotphil01
@Dotphil01 10 ай бұрын
Great video. After following your steps on installing docker, I tried running the sudo docker ps -a command but kept getting an error message like this "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?". How do I resolve this?
@BlaizeTech
@BlaizeTech 10 ай бұрын
Set your DOCKER_HOST environment variable to the IP address of your WSL2 instance. You can get this by typing ifconfig.
@Hellbending
@Hellbending 8 ай бұрын
Scoop > chocolatey 😉
@BlaizeTech
@BlaizeTech 8 ай бұрын
I'm old school. 😂😂
@Hellbending
@Hellbending 8 ай бұрын
@@BlaizeTech Hey… hey now - Git’s pretty old school? 😂😂
@BlaizeTech
@BlaizeTech 8 ай бұрын
@@Hellbending Ahh Yeah!!!
@rcubickmprt
@rcubickmprt 9 ай бұрын
hai, great video. can my node in other vm join as worker to kubernetes in wsl with these settings?
@BlaizeTech
@BlaizeTech 9 ай бұрын
It's possible. This is just using MiroK8S, which allows you to create clusters.
@rcubickmprt
@rcubickmprt 9 ай бұрын
@@BlaizeTech Thank you for the quick response. I'm eager to follow the steps outlined for setting up Kubernetes on an on-premise Windows server as the master. I have an additional server that I'd like to join as a node to the master, Is it possible?
@BlaizeTech
@BlaizeTech 9 ай бұрын
@@rcubickmprtI don't think windows as a master is going to work. I've never seen such a setup, and I wouldn't recommend it even if it does work. Using Windows worker nodes is fine for Windows containers. If it has to be on Windows, WSL is your tool, although the WSL networking is not great. I would suggest using Linux as much as possible, and use Windows when necessary if at all.
@rcubickmprt
@rcubickmprt 9 ай бұрын
@@BlaizeTech Unfortunately, it has to be on Windows due to compatibility issues with other apps. By the way, I have the following devices: - 1 unit Windows Server - 2 unit Synology NAS In your opinion, if I have to use Kubernetes, where should I configure the master? and then Which is better, configuring it on WSL or using a VM and installing a Linux distribution?
@BlaizeTech
@BlaizeTech 9 ай бұрын
@@rcubickmprtI'd use a VM if you can. WSL is really more of dev tool, and the IO on the file system is slow. I prefer Ubuntu for MicroK8S because it's easy to install for small uses. You may wan to check out Rancher OS, too. It's more of a turnkey solution for Kubernetes.
@whiteking80
@whiteking80 8 ай бұрын
Great video. Imfollowing this tutoril step by step. However I notice following command which to open docker .service found none searching for the port. The latter script service has bit different than the the one you're demonstrating. May i know the alternative to find the port ? sudo nano /lib/systemd/system/docker.service
@whiteking80
@whiteking80 8 ай бұрын
sudo ss -tln | grep ':2375' found no response
@whiteking80
@whiteking80 8 ай бұрын
owh i just noticed you actually added and modify the script. Thanks 4 your video. Appreciate it.!
@BlaizeTech
@BlaizeTech 8 ай бұрын
@@whiteking80 Glad you found the solution.
@Marhaenism1930
@Marhaenism1930 7 ай бұрын
ah i thought was only me had same issue like that, because we werent using same OS as vid. glad it was solved
@rochesterbrad
@rochesterbrad 3 ай бұрын
How do we deal with proxy server in way of doctor. Where do we add a cert pem file?
@BlaizeTech
@BlaizeTech 3 ай бұрын
Here's how to handle this with the docker daemon. docs.docker.com/config/daemon/proxy/
@ghostshell22-m4z
@ghostshell22-m4z 9 ай бұрын
sudo systemctl daemon-reload System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
@BlaizeTech
@BlaizeTech 9 ай бұрын
This happens because of older versions of WSL or Ubuntu. Make sure you've upgraded your WSL install (wsl --udpdate) and use a more current version of Ubuntu.
MacOS (OSX) in a Container: Unleashing Technological Absurdity
15:21
Windows Subsystem for Linux setup WSL2 Systemd, Ansible, and Kubernetes
20:50
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 21 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,9 МЛН
Windows development setup with WSL2, ZSH, VSCode, and more
12:02
Christian Lempa
Рет қаралды 232 М.
WSL 2 Networking
14:14
David Bombal
Рет қаралды 221 М.
Magical localhost networking with Docker WSL2 Windows and Linux
6:44
Joe Freeman: Software Craft, Org Stuff, Tech Stuff
Рет қаралды 2,2 М.
Using Containers without Docker Desktop
20:08
The Pragmatic Programmer
Рет қаралды 10 М.
Docker Compose Tutorial
33:02
Programming with Mosh
Рет қаралды 458 М.
Tutorial: Setup a Development Environment on Windows (Docker, WSL2, Ubuntu, Vscode)
15:30
KAUST Visualization Core Lab
Рет қаралды 42 М.
My Favorite Way To Handle Dev Environments | VS Code Devcontainers
30:05
Full NixOS Guide: Everything You Need to Know in One Place!
30:11
WSL 2 With Docker Getting Started and Docker Desktop Installation
13:27
Beachcasts Programming Videos
Рет қаралды 30 М.
Kubernetes on Windows with WSL 2 and Microk8s
20:08
Canonical Ubuntu
Рет қаралды 41 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН