Table des matières
- 2026:
- 2025:
12 billet(s) pour novembre 2026
| Notes conversion JSON YAML | 2026/11/13 11:16 | Jean-Baptiste |
| Git commit perdu | 2026/11/12 18:16 | Jean-Baptiste |
| Notes mojo lang | 2026/11/11 20:34 | Jean-Baptiste |
| Notes rust lang compilation | 2026/11/11 18:35 | Jean-Baptiste |
| Mémoire VSIZE VMSIZE SEGV lang C | 2026/11/11 15:59 | Jean-Baptiste |
| Ansible-navigator utilisation de ansible-vault | 2026/11/06 11:33 | Jean-Baptiste |
| Err Ansible - Module result deserialization failed No start of json char found | 2026/11/06 09:09 | Jean-Baptiste |
| Script Python conversion JSON vers CSV | 2026/11/06 08:14 | Jean-Baptiste |
| Filter Incoming IPv4 Packets Containing IP Options - cve-2026-98432 mitigation - Kernel TCP Use-After-Free | 2026/11/04 21:04 | Jean-Baptiste |
| Notes ZFS | 2026/11/03 18:04 | Jean-Baptiste |
| Diff image container | 2026/11/03 16:30 | Jean-Baptiste |
| Notes processus multi-thread | 2026/11/03 10:59 | Jean-Baptiste |
Notes urlencoding - passer des mots de passe en HTTPS
Voir un exemple ici : Exemple git clone avec Ansible
from urllib.parse import quote_plus quote_plus('P@ssw0rd!')
'P%40ssw0rd%21'
Et inversement
from urllib.parse import unquote_plus unquote_plus('P%40ssw0rd%21')
'P@ssw0rd!'
Autres
from urllib.parse import urlencode urlencode({'a': 'P@ssw0rd!'}).split('=')[1]
Namespace - accès aux volumes - podman
Information
podman run --init --entrypoint /bin/sleep docker.io/library/centos:centos5 inf
$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0200210cacf3 docker.io/library/centos:centos5 inf 31 minutes ago Up 31 minutes vigorous_nobel
$ podman unshare mount | grep $HOME
/dev/sdd on /home/management/.local/share/containers/storage/overlay type ext4 (rw,relatime,discard,errors=remount-ro,data=ordered)
shm on /home/management/.local/share/containers/storage/overlay-containers/0200210cacf387ff1af5fd2d75724779c846710c5ac392338ab4dbb77a7e660b/userdata/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=64000k,uid=1000,gid=1000)
overlay on /home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/merged type overlay (rw,relatime,lowerdir=/home/management/.local/share/containers/storage/overlay/l/BPCGYE43L4DFWORYE7TTH2DWLA,upperdir=/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff,workdir=/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/work,redirect_dir=nofollow,uuid=on,userxattr)
$ podman unshare find /home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/run
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/run/.containerenv
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/etc
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/etc/hostname
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/sys
/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff/proc
$ podman unshare ls /home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/merged/
bin dev etc home lib lib64 lost+found media mnt opt proc root run sbin selinux srv sys tmp usr var
$ ls /home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/merged/
$ podman inspect 0200210cacf3 | jq -r '.[].GraphDriver.Data'
{
"LowerDir": "/home/management/.local/share/containers/storage/overlay/5513565ec546b4249cb76fec6551253c611d6ee80184807324c5c4335e4a2964/diff",
"MergedDir": "/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/merged",
"UpperDir": "/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/diff",
"WorkDir": "/home/management/.local/share/containers/storage/overlay/fa0297061b69f1acd265c66d797c50ecedcdcf3565272bdd1db78c614c3d9b87/work"
}
$ ls /home/management/.local/share/containers/storage/overlay/5513565ec546b4249cb76fec6551253c611d6ee80184807324c5c4335e4a2964/diff
bin dev etc home lib lib64 lost+found media mnt opt root sbin selinux srv tmp usr var
Accès en lecture depuis l'hôte
podman inspect 0200210cacf3 | jq -r '.[].GraphDriver.Data.LowerDir'
Images conteneurs flatten - réduire la taille d'une image
Voir aussi :
- regctl / regclient
Avec le Multi-stage
Source : https://stackoverflow.com/questions/39695031/how-make-docker-layer-to-single-layer
Dockerfile
# FROM docker.io/library/alpine:latest FROM docker.io/library/alpine:latest as build1 # ... # ... FROM scratch COPY --from=build1 / / ENTRYPOINT ["/launch.sh"]
Err
Error: crun: cannot find `` in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
Solution : Définir un entrypoint
Avec Docker / Podman / Buildah
Pour Docker (expérimental)
WARNING: experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency.
Pour Podman (man podman-build)
--squash Squash all of the image’s new layers into a single new layer; any preexisting layers are not squashed. --squash-all Squash all of the new image’s layers (including those inherited from a base image) into a single new layer.
Avec crane
Installation
Via asdf ou
tar xvf go-containerregistry.tar.gz
LICENSE
README.md
crane
gcrane
krane
Utilisation
Comme ça ne fonctionne pas avec tous les types de registries ne fonctionne pas, pour notre besoin nous allons en créer un basé sur docker.io/registry
podman run -d -p 5000:5000 --name registry docker.io/registry
Récupération de l'image
crane auth login artifact.acme.local crane copy artifact.acme.local/dev-plop/app1:main localhost:5000/app1:main # crane copy artifact.acme.local/dev-plop/app1:main localhost:5000/app1:main --platform linux/amd64
$ crane flatten localhost:5000/app1:main -t localhost:5000/app1:main-flat 2026/07/31 18:26:01 pushed blob: sha256:ed9d23f3b49db213c07a6daeaf7a76405361dc92e24451068d6859d438dbd4ff 2026/07/31 18:26:01 existing blob: sha256:ed9d23f3b49db213c07a6daeaf7a76405361dc92e24451068d6859d438dbd4ff 2026/07/31 18:26:01 pushed blob: sha256:209899dc89cf25b900a57f1a86d9db824f1f9399eab4a1ed53d3e6d18a5420e7 2026/07/31 18:26:01 localhost:5000/app1:main-flat: digest: sha256:63a460ab7df5fd87f10d07fbff9cc662bd61d71e86c7f52521ca3a80587831b5 size: 431 localhost:5000/app1@sha256:63a460ab7df5fd87f10d07fbff9cc662bd61d71e86c7f52521ca3a80587831b5
Récupération de l'image aplanie en local
podman pull --tls-verify=false localhost:5000/app1:main-flat
Comparaison de la taille
$ podman images REPOSITORY TAG IMAGE ID CREATED SIZE localhost:5000/app1 main-flat 209899dc89cf 2 hours ago 2.53 GB artifact.acme.local/dev-plop/app1 main c5cfb851b087 11 hours ago 5.04 GB
Contre DNS
Source : https://freenet.org/about/faq/#does-freenet-have-decentralized-domain-names-or-dns
Does Freenet have decentralized domain names or DNS?
Not currently, and mostly on purpose. Domain names do three different jobs: identification, human-readable naming, and discovery. We think DNS is the wrong fit for all three on a decentralized network.
- Identification: Freenet identifies content and applications by contract hashes, which are content-addressed keys. They’re fully decentralized and cryptographically verifiable, but not human-friendly.
- Human-readable naming: This is the problem captured by Zooko’s triangle: a name can be at most two of human-meaningful, secure, and decentralized. DNS gets memorability by being centralized. Freenet prefers local, personal naming instead: memorable nicknames each user keeps for the identities they care about, like the contacts list on your phone (a “petname” system). Because the names are personal rather than global, there’s no central registry to control and no race to squat every good name.
- Discovery: “Find the thing I want” is really a search problem, not a naming one, and search and recommendation handle it better than a global namespace can. That’s what we’re designing in Atlas, a decentralized discovery layer that’s still at the design stage.
So Freenet has no direct equivalent of decentralized domain names, because we don’t think DNS is the right tool for either identification or discovery.
