Generate systemd unit

Create a systemd unit to manage the container lifecycle

podman generate systemd --new --name web > ~/.config/systemd/user/web.service

tool
podman16 commands
tags
podmancontainerssystemd

More podman commands

  • podman play kube deployment.yaml

    Run a pod from a Kubernetes manifest (local testing)

  • podman generate kube mypod > pod.yaml

    Generate a Kubernetes-compatible manifest from a running pod

  • podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpine

    Group containers into a pod sharing network namespace

  • podman image inspect myapp:latest | jq '.[0].RootFS.Layers'

    List filesystem layers of an image

  • podman ps -a --format '{{.Names}}\t{{.Status}}\t{{.Image}}'

    Show all containers with name, status and image

all 16 podman commands