This message was deleted.
# rancher-desktop
a
This message was deleted.
f
nerdctl
is a Windows executable when invoked from Win32 (it translates Windows paths parameters to Linux paths among other things), and a shell script when invoked from a WSL distro. Ultimately it is a binary that runs inside the
rancher-desktop
distro; the other script and
nerdctl.exe
are just launcher tools for it.
c
Right. A Windows executable, not a Powershell module. I asked about Powershell modules.
w
sorry didn't realize thread forked. https://github.com/microsoft/Docker-PowerShell?tab=readme-ov-file may still work even though its abandoned.
c
It only partially works and as far as I can figure out, there's no way to login to a registry with it. I'd try the Docker.DotNet project that superceded it, but I'm not a programmer and I don't have the tools or knowledge to compile it and try to make it usable in Powershell when the authors didn't do it themselves.
w
yeah .net would be closer to c# interactions and doing a custom module would be messy
better to just parse the input/output of running the exe
you can see similar activities in efforts like https://github.com/jdhitsolutions/WingetTools since the ms cmdlets are for posh7+. 100s of edge cases that make this hard to do everytime, but in dockers case you may be able to use https://docs.docker.com/config/formatting/ to make parsing more consistent