Spin OCI based Rootless Containers using CNCF graduated industry standard container runtime containerd and its excellent tool nerdctl on windows via WSL2.

These are a list of links which could be of help to someone and even future me 🙂

https://superuser.com/questions/1551146/how-to-verify-that-wsl-2-is-used
> wsl -l -v
OR
> wsl --list --verbose

WSL2 having a real Linux kernel it should be preferred throughout the earlier WSL1. 

> wsl --set-default-version 2

https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4—download-the-linux-kernel-update-package Ubuntu can be installed from app store on windows
https://wiki.ubuntu.com/WSL more info from ubuntu wiki for wsl https://docs.microsoft.com/en-us/windows/wsl/troubleshooting  common troubleshooting scenarios associated with WSL

Install nerdctl – a docker-compatible cli for containerd 
https://github.com/containerd/nerdctl
https://github.com/containerd/nerdctl#install
https://github.com/containerd/nerdctl/releases use the full binary, Includes dependencies such as containerd, runc, and CNI e.g. nerdctl-full-0.18.0-linux-amd64.tar.gz)

systemd issue while running nerdctl ? use systemd genie from github:
https://superuser.com/questions/1556609/how-to-enable-systemd-on-wsl2-ubuntu-20-and-centos-8
https://github.com/arkane-systems/genie for systemd not available as pid1, please use genie
https://github.com/arkane-systems/genie/wiki/Systemd-units-known-to-be-problematic-under-WSL#multipathdservice resolve issues provided individual systemd units fail 

$ wsl genie -s

https://medium.com/geekculture/move-away-from-docker-now-and-utilize-wsl2-systemd-genie-containerd-with-nerdctl-d5f729dcf227 I found this blog accommodating many issues I faced on my office PC. 

https://rootlesscontaine.rs/getting-started/common/  running containers rootless 

See Also:

WSL Architecture : 
As presented in this video by Microsoft Developers The new Windows subsystem for Linux architecture: a deep dive – BRK3068 
This shows how the WSL architecture will improve your development environment with: faster dossier performance speed, Linux dossier access from Windows, full system call compatibility thus better support for Linux applications, and more.

0 0 vote
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments