Skip to content

podman

Creating a systemd service

Article

#/home/pratham/container-chitragupta-db.service
podman generate systemd --new --name chitragupta-db -f

Creating a systemd service with ansible

**Systemd unit files for postgres container must exist!!!

    - name: Create systemd user service
      containers.podman.podman_generate_systemd:
        name: "{{ container_name }}"
        dest: ~/.config/systemd/user/

  • [docker]({{\< ref “posts/Linux/Docker/docker.md”>}})