Export a pod as Kubernetes YAML
Generate a Kubernetes manifest from a running pod
podman generate kube mypod > pod.yaml
- tool
- podman16 commands
More podman commands
-
podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpinePut containers into one pod so they share the same network namespace
-
podman image inspect myapp:latest | jq '.[0].RootFS.Layers'List the filesystem layers of an image
-
podman ps -a --format '{{.Names}}\t{{.Status}}\t{{.Image}}'Show every container with its name, status and image
-
podman container prune -fDelete all exited containers without asking for confirmation
-
podman login registry.example.com -u myuserLog in to a container registry with your username