blog
Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
Notes podman secret
https://www.redhat.com/en/blog/podman-kubernetes-secrets
Création
read -s PLOP ; echo $PLOP > secret.txt ; rm secret.txt podman secret create secret1 secret.txt
Exemple fichier
podman run --rm --secret source=secret1,type=mount,uid=1001,gid=1001,mode=440 docker.io/library/alpine cat /run/secrets/secret1
Exemple variable d'environement
podman run --rm --secret secret1,type=env,target=ENVSE docker.io/library/alpine sh -c 'echo $ENVSE'
Notes ansible podman
ansible-doc -t connection -l | grep podman ansible-doc -t inventory -l | grep podman
play.yml
#! /usr/bin/ansible-playbook --- - name: test hosts: all connection: containers.podman.podman tasks: - name: Test command: ls -l
inventory.yml
plugin: containers.podman.podman_containers include_stopped: false #label_selectors: # role: api connection_plugin: containers.podman.podman
./plop.yml -i inventory.yml
Le conteneur doit avoir python3
Notes podman volume
Voir :
podman volume create --opt type=nfs --opt o=async --opt device=mynfsserver:/path/to/share
Voir rootless_storage_path
services: my_service: image: my_image healthcheck: test: ls /path/to/rclone/mount || exit 1 interval: 1m timeout: 15s retries: 3 start_period: 15s
Source : https://rclone.org/docker/
transient_store - Désactiver la persistance des données
Voir :
- /usr/share/containers/storage.conf
man containers-storage.conf
Avantage :
- Pas de persistance (guaranteeing a fresh state on boot in case of unclean shutdowns or other problems)
- Accélère le temps de démarrage des conteneurs
- Plus aucun état
Inconvénients:
- Pas de persistance
- can't run containers in a mixed mode, where some are transient and others persist
podman --transient-store run -ti alpine /bin/sh
Cela revient un peu à (mais en plus rapide)
podman run -ti --rm alpine /bin/sh
Mais les conteneurs crées apparaissent avec
podman --transient-store ps -a
On préférera utiliser les deux :
podman --transient-store run -ti --rm alpine /bin/sh
Pour activer le transient-store par défaut
~/.config/containers/storage.conf
[storage] driver = "overlay" transient_store = true
Find list - Trouver des fichiers à partir d'une liste
find ~/mnt/ftp $(grep -v '^#' ~/plop.lst | sed -e 's/^/ -o -name /g' | tr -d '\n' | sed -e 's/-o//')
Ou encore avec updatedb / locate / plocate
updatedb -l 0 -o db_file_nas -U ~/mnt/ftp/ locate -d db_file_nas --regex "$(grep -v '^#' ~/plop.lst | sed -e 's|^|/|' -e 's|\n|$|' | tr "\n" "|" | sed '$ s/.$//')"
blog.txt · Dernière modification : de 127.0.0.1
