Skip to content

Instantly share code, notes, and snippets.

@vs4vijay
Last active November 10, 2022 05:04
Show Gist options
  • Save vs4vijay/3dd905cba78c75b0355ed03b7dfcad20 to your computer and use it in GitHub Desktop.
Save vs4vijay/3dd905cba78c75b0355ed03b7dfcad20 to your computer and use it in GitHub Desktop.
Windows Docker Alternatives
# OPTION-I: Using Containerd with nerdctl on WSL
- Start WSL2
- Install `containerd` - sudo apt install containerd
- Run `sudo /etc/init.d/docker start` # systemd is not available on WSL, use this Step
- OR
- Run `containerd` - `sudo systemctl enable --now containerd`
- Install nerdctl - `wget https://github.com/containerd/nerdctl/releases/download/v0.12.1/nerdctl-0.12.1-linux-amd64.tar.gz`
- `nerdctl run -it --rm nginx`
# OPTION-II: Using docker community edition on WSL
- Start WSL2
- sudo apt-get update
- sudo apt-get install docker-ce docker-ce-cli containerd.io
- sudo chmod 666 /var/run/docker.sock
- sudo usermod -aG docker ${USER}
- SystemD - https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/
# OPTION-III: Using podman on WSL
- Start WSL2
- Run following commands:
```bash
. /etc/os-release
#sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
sudo echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${NAME}_${VERSION_ID}/ /" | sudo tee -a /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -fsSL "https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${NAME}_${VERSION_ID}/Release.key" | sudo apt-key add -
sudo apt update
sudo apt install podman
sudo mkdir -p /etc/containers
echo -e "[registries.search]\nregistries = ['docker.io', 'quay.io']" | sudo tee /etc/containers/registries.conf
```
Windows Kubernetes Options
- Rancher Desktop
- k3s
- minikube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment