-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Powershell.exe #9
Comments
This needs a binfmt registration. I think this can be set with:
If this works this could be set from the podman machine init. I don't think this needs an image change. |
Thanks for your input, unfortunately, I no longer have a Windows Podman setup to test this with. |
I didn't try this, as one only needs to |
Hello,
In a standard WSL2 image I am able to run powershell.exe in the WSL bash terminal in order to interact with the host Powershell.
I am unable to do so from the Fedora image.
This would be useful to allow automated port mapping on the HOST IP to podman services.
I could add the following lines to my service file as
ExecStartPost
and add the appropriate lines for theExecStopPost
to remove the entries.netsh interface portproxy add v4tov4 listenport=<HOST PORT> connectport=<PODMAN MACHINE PORT> connectaddress=<PODMAN MACHINE IP>
New-NetFirewallRule -DisplayName "$($RuleName)" -Description "Rule to allow incoming traffic to port proxy to the Podman WSL2 machine instance." -Group "Podman Port Proxy" -Enabled True -Profile Any -Direction Inbound -Action Allow -Protocol TCP -LocalPort <HOST PORT>
The text was updated successfully, but these errors were encountered: