Activer IPv6 sur Podman
1. Vérifier que IPv6 est actif sur l'hôte
sysctl net.ipv6.conf.all.disable_ipv6 (doit renvoyer 0)
2. Créer un réseau IPv6 pour podman :
podman network create --ipv6 --subnet fd00::/80 podman_ipv6
3. Rendre persistent ce réseau : /etc/cni/net.d/87-podman-bridge.conflist :
{
"cniVersion": "0.4.0",
"name": "podman",
"plugins": [
{
"type": "bridge",
"bridge": "cni-podman0",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [{ "dst": "0.0.0.0/0" }, { "dst": "::/0" }],
"ranges": [
[
{
"subnet": "10.88.0.0/16",
"gateway": "10.88.0.1"
}
],
[
{
"subnet": "fd00::/80",
"gateway": "fd00::1"
}
]
]
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
}
},
{
"type": "firewall"
},
{
"type": "tuning"
}
]
}
5. Redémarrer podman : systemctl restart podmanDans podman-compose.yaml, il faut ajouter une section :
networks:
default:
enable_ipv6: true
ipam:
config:
# Penser à changer le réseau ci-dessous
- subnet: fd00:81::/64
Basé sur https://medium.com/@ByteWaveNetwork/setting-up-podman-for-ipv6-part-9-b1d8164d469f
