Lors de la fabrication d’image docker (via docker build) en utilisant buildah (comme préconisé sur plmlab) avec des distribution récentes (comme Fedora 35), vous pouvez vous retrouver face à cette erreur:
STEP 3: RUN dnf install -y git python3 python3-devel pip gcc make
Fedora 35 - x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'fedora':
- Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-35&arch=x86_64 [getaddrinfo() thread failed to start]
Ceci est dû à un gestion du confinement (seccomp). Pour éviter ce problème, il faut ajouter l’option --security-opt seccomp=unconfined
lors du docker build (buildah bud en l’occurence)