-
Build
podman build -t python-server:latest .
-
Run
podman run python-server:latest
-
Check if it is running
podman ps
-
Test
curl http://localhost:8000
-
Relaunch the container
podman run -p8000:8000 python-server:latest
-
Test again
curl http://localhost:8000
-
Create a pod
podman play kube --publish 8000:8000 pod.yaml
-
Verify if it is running
podman pod ps podman ps
-
Stop and remove
podman pod stop <podId> podman pod rm <podId>
-
Create in OpenShift.
oc project bit-play oc create -f pod.yaml
-
Add service and route.
oc create -f service.yaml oc create -f route.yaml
-
Show that if you delete the pod will be lost.