Using Podman on Windows
Apr 1, 2023
- Running docker locally [Podman on Windows]
i) Download and install Podman Desktop from https://podman-desktop.io/downloads/Windows
ii) Open Windows Powershell and run the below two commands.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl — install
iii) Restart Windows.
iv) Install podman using Podman Desktop.
v) Initialize and start podman.
vi) Download kubectl.exe from https://dl.k8s.io/release/v1.26.0/bin/windows/amd64/kubectl.exe
vii) In Windows Powershell run command Set-Alias docker podman
viii) Run command docker search nginx
ix) Run docker pull docker.io/library/nginx
x) Run docker images
xi) Run docker run -dt -p 8080:80/tcp docker.io/library/httpd
xii) Run docker ps
xiii) Run curl http://localhost:8080
xiv) Run docker logs CONTAINER_ID
xv) Run docker stop CONTAINER_ID
Reference/Attributions: