-
Windows Subsystem for Linux
- First ensure
Windows Subsystem for Linux
has been installed underSystem
>Optional features
>More Windows features
.
- First ensure
-
OpenSSH
winget install Microsoft.OpenSSH.Beta
only needed if you don't have
ssh-keygen
on your path
winget install RedHat.Podman
winget install RedHat.Podman-Desktop
-
Create Podman Machine
- Open Podman Desktop > Dashboard
- Click
Set up
under the Notification - Follow all the steps to create a Podman Machine
-
Add registry
- Goto Settings > Registries > Add registry
- Registry Location:
registry.domain:5000
with your username and password
-
Setup Proxy
- Goto Settings > Proxy
- Enable proxy configuration
- Set
http://username:[email protected]:8080
into both HTTP & HTTPS - Set
registry.domain:5000
into no proxy - Press
Update
to apply
-
Restart your Podman Machine
- Goto Settings > Resources > Podman Machine
- Press the
restart
button
-
Verify your setup
podman run -it --rm alpine echo success
for 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.conf
podman 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
restart
button
You can now use
podman
to replacedocker
.
Goto Settings > Resources > Kind
- Click the
Create new ...
, in the next page then pressCreate
button.
podman machine stop
podman machine rm
winget uninstall RedHat.Podman
winget uninstall RedHat.Podman-Desktop