Outils pour utilisateurs

Outils du site


tech:notes_podman_quadlet

Ceci est une ancienne révision du document !


Notes podman quadlet

/home/jibe/.config/containers/systemd/mysleep.container

[Unit]
Description=The sleep container
 
[Container]
Image=docker.io/library/debian:latest
Exec=sleep inf
 
[Install]
WantedBy=multi-user.target
$ podman quadlet list
NAME               UNIT NAME        PATH ON DISK                                             STATUS      APPLICATION
mysleep.container  mysleep.service  /home/jibe/.config/containers/systemd/mysleep.container  Not loaded  
systemctl --user daemon-reload 
$ podman quadlet list
NAME               UNIT NAME        PATH ON DISK                                             STATUS         APPLICATION
mysleep.container  mysleep.service  /home/jibe/.config/containers/systemd/mysleep.container  inactive/dead  
systemctl --user start mysleep.service 
$ podman quadlet list
NAME               UNIT NAME        PATH ON DISK                                             STATUS          APPLICATION
mysleep.container  mysleep.service  /home/jibe/.config/containers/systemd/mysleep.container  active/running  
jibe@vivabelo:~$ 

Podman & K8S

podman generate kube intelligent_lovelace --podman-only > pod.yaml

pod.yaml

# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-5.8.6
apiVersion: v1
kind: Pod
metadata:
  annotations:
    io.podman.annotations.init/intelligentlovelace: "TRUE"
  creationTimestamp: "2026-10-12T19:55:35Z"
  labels:
    app: intelligentlovelace-pod
  name: intelligentlovelace-pod
spec:
  containers:
  - command:
    - sleep
    - inf
    image: docker.io/library/debian:latest
    name: intelligentlovelace
podman kube play pod.yaml
tech/notes_podman_quadlet.1791835317.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki