-
Windows Subsystem for Linux
- First ensure
Windows Subsystem for Linuxhas been installed underSystem>Optional features>More Windows features.
- First ensure
-
OpenSSH
winget install Microsoft.OpenSSH.Beta
only needed if you don't have
ssh-keygenon your path
winget install RedHat.Podman
winget install RedHat.Podman-Desktop-
Create Podman Machine
- Open Podman Desktop > Dashboard
- Click
Set upunder the Notification - Follow all the steps to create a Podman Machine
-
Add registry
- Goto Settings > Registries > Add registry
- Registry Location:
registry.domain:5000with your username and password
-
Setup Proxy
- Goto Settings > Proxy
- Enable proxy configuration
- Set
http://username:[email protected]:8080into both HTTP & HTTPS - Set
registry.domain:5000into no proxy - Press
Updateto apply
-
Restart your Podman Machine
- Goto Settings > Resources > Podman Machine
- Press the
restartbutton
-
Verify your setup
podman run -it --rm alpine echo successfor some unknown reason, you may need to restart the podman machine again few times to make sure the proxy is taking effect.
-
Shell into Podman Machine and edit
registries.confpodman machine ssh > sudo vi /etc/containers/registries.conf -
Append the following to the end of file
[[registry]] location = "registry.domain:5000" insecure = true
-
Finally restart the Podman Machine
- Goto Settings > Resources > Podman Machine
- Press the
restartbutton
You can now use
podmanto replacedocker.
Goto Settings > Resources > Kind
- Click the
Create new ..., in the next page then pressCreatebutton.
podman machine stop
podman machine rm
winget uninstall RedHat.Podman
winget uninstall RedHat.Podman-Desktop