run nerdctl on WSL2 #765
-
Hi, I've been looking around to instruction on how to run nerdctl on WSL2 (Ubuntu 20.04), I've installed genie (systemd) and restarted the environment. But running 'containerd-rootless-setuptool.sh install' gives me:
and as root,
I must be missing something, what did I miss? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 2 replies
-
I don't know about WSL2, but probably you can just directly run |
Beta Was this translation helpful? Give feedback.
-
Thank you @AkihiroSuda, I ran containerd-rootless.sh in wsl, here's what it says: I'm just wondering because from the readme file, it says this is "known to work with wsl". Any indication on this would be really appreciated. Best, |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@fzhan I was able to setup nerdctl on WSL2 by following steps in this post - https://medium.com/geekculture/move-away-from-docker-now-and-utilize-wsl2-systemd-genie-containerd-with-nerdctl-d5f729dcf227 |
Beta Was this translation helpful? Give feedback.
-
@AkihiroSuda thank you, I will go through the post @ramanNarasimhan77 and give it another go. |
Beta Was this translation helpful? Give feedback.
-
@ramanNarasimhan77 worked like a charm! However, now nerdctl image pull xxx gives: FATA[0079] failed to extract layer sha256:bc73a95c0b43a6de24cacd4317f889ecebd2ee9afafa422204bc1ecfb65409e9: failed to mount /var/lib/containerd/tmpmounts/containerd-mount777138962: operation not permitted: unknown |
Beta Was this translation helpful? Give feedback.
-
More question: how to access the servers in WSL2? |
Beta Was this translation helpful? Give feedback.
-
Found this: https://stackoverflow.com/questions/61002681/connecting-to-wsl2-server-via-local-network So the port exposed needs to be configured one by one. |
Beta Was this translation helpful? Give feedback.
-
Rancher Desktop now supports running nerdctl inside WSL2 easily: https://rancherdesktop.io/ |
Beta Was this translation helpful? Give feedback.
-
Rancher Desktop now supports running nerdctl inside WSL2...... If the engine is dockerd(moby), A webserver started on Windows Rancher Desktop can be accessed on WSL2 browsers and Windows browsers. Is there a bug ticket for this? |
Beta Was this translation helpful? Give feedback.
Rancher Desktop now supports running nerdctl inside WSL2 easily: https://rancherdesktop.io/