Outils pour utilisateurs

Outils du site


blog

Notes namespaces unshare mount bind shared

Autres

findmnt -o TARGET,PROPAGATION /opt
 
cat /proc/1/mountinfo

Pb

Err WARN[0001] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
$ podman pull docker.io/hadolint/hadolint
WARN[0001] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers

Solution

sudo mount --make-shared /

FIXME

2025/10/05 01:45 · Jean-Baptiste

Gestion des droits d'accès

Voir :

FIXME

2025/10/02 20:22 · Jean-Baptiste

Architecture et code - bonnes pratiques - design pattern

Voir :

Voir aussi :

Méthode :

  • Principe de substitution de Liskov

FIXME

2025/10/01 20:19 · Jean-Baptiste

Podman NFS rootless

Voir aussi :

Source et explications : https://www.redhat.com/en/blog/rootless-podman-nfs

Changer

~/.config/containers/storage.conf

[storage]  
driver = "overlay"  
runroot = "/run/user/1000"  
graphroot = "/home/myuser/.local/share/containers/storage"

En

[storage]  
driver = "overlay"  
runroot = "/run/user/1000"  
graphroot = "/var/tmp/myuser/containers/storage

Ou créer un FS

truncate -s 10g /home/myuser/xfs.img  
mkfs.xfs -m reflink=1 /home/myuser/xfs.img
mount /home/myuser/xfs.img /home/myuser/.local/share/containers

Autres

--userns=keep-id

ignore_chmod_errors = "true" in storage.conf

~/.config/containers/storage.conf

[storage]
driver="overlay"
[storage.options]
mount_program = "/usr/bin/fuse-overlayfs"
[storage.options.overlay]
mountopt="xattr_permissions=2,threaded=1"

FIXME

2025/10/01 15:31 · Jean-Baptiste

Err podman - User-selected graph driver overlay overwritten by graph driver vfs from database

Voir :

Voir aussi :

  • CONTAINERD_SNAPSHOTTER
$ podman search nginx
ERRO[0000] User-selected graph driver "overlay" overwritten by graph driver "vfs" from database - delete libpod local files ("/home/jean/.local/share/containers/storage") to resolve.  May prevent use of images created by other tools 
ERRO[0000] User-selected graph driver "overlay" overwritten by graph driver "vfs" from database - delete libpod local files ("/home/jean/.local/share/containers/storage") to resolve.  May prevent use of images created by other tools 
$ podman info --format '{{ .Store.GraphDriverName }}'
podman info --format '{{ .Store.GraphDriverName }}'
ERRO[0000] User-selected graph driver "overlay" overwritten by graph driver "vfs" from database - delete libpod local files ("/home/jean/.local/share/containers/storage") to resolve.  May prevent use of images created by other tools 
vfs

~/.config/containers/storage.conf

[storage]
driver = "overlay"
[storage.options]
mount_program = "/usr/bin/fuse-overlayfs"
$ nerdctl info | grep -i "storage"
 Storage Driver: overlayfs
  Storage: native overlayfs
$ ls -lh /home/jean/.local/share/containers/storage/libpod/bolt_state.db 
-rw------- 1 jean jean 128K sep 30 14:26 /home/jean/.local/share/containers/storage/libpod/bolt_state.db
env STORAGE_DRIVER=vfs podman search nginx
env STORAGE_DRIVER=overlayfs podman search nginx

Solution

rm ~/.config/containers/storage.conf
mv /home/jean/.local/share/containers/storage/libpod/ /home/jean/.local/share/containers/storage/libpod.bak

Voir aussi

podman system reset

Autres

# ctr plugins ls | grep snapshot
io.containerd.snapshotter.v1           blockfile                linux/amd64    skip      
io.containerd.snapshotter.v1           btrfs                    linux/amd64    skip      
io.containerd.snapshotter.v1           devmapper                linux/amd64    skip      
io.containerd.snapshotter.v1           native                   linux/amd64    ok        
io.containerd.snapshotter.v1           overlayfs                linux/amd64    ok        
io.containerd.snapshotter.v1           aufs                     linux/amd64    skip      
io.containerd.snapshotter.v1           zfs                      linux/amd64    skip      
io.containerd.service.v1               snapshots-service        -              ok        
io.containerd.grpc.v1                  snapshots                -              ok
sudo ctr containers info my-container
2025/09/30 21:44 · Jean-Baptiste
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki