containers/buildah

setup network: netavark: code: 4, msg: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument

icefery opened this issue · 1 comments

Question

To run buildah build in a podman container will fail when network request is required.

Reproduce

  1. Run container

    sudo podman run -i -t --privileged ubuntu:24.04 bash
  2. Build image

    apt update && apt install curl vim git buildah
    
    tee Containerfile > /dev/null <<- "EOF"
    FROM docker.io/library/ubuntu:24.04
    RUN apt update
    ENTRYPOINT ["echo", "hello world"]
    EOF
    
    buildah build -f Containerfile -t test
  3. Error

    STEP 1/3: FROM docker.io/library/ubuntu:24.04
    STEP 2/3: RUN apt update
    error running container: did not get container start message from parent: EOF
    Error: building at STEP "RUN apt update": setup network: netavark: code: 4, msg: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
    

Please provide the the reuested information from the template, in particular what version are being used,etc...

This is something wrong with your iptables version or kernel <-> iptables version incompatibility. Does you host use nftables? IF not you need to load the nesseary kernel modes are switch the container to the iptables-legacy. In any case this is not a upstream buildah issue.