Generate container image build fails

Version: 1.4-rolling-202211290318

gzenner@vyos-backup:/config/pods/definitions/DNS-Server$ generate container image dns-server path /config/pods/definitions/DNS-Server/
STEP 1/6: FROM alpine:3.16.2
STEP 2/6: RUN apk update
WARN[0000] Failed to load cached network config: network podman not found in CNI cache, falling back to loading network podman from disk
WARN[0000] 1 error occurred:
        * plugin type="bridge" failed (delete): cni plugin bridge failed: running [/usr/sbin/iptables -t nat -D POSTROUTING -s -j CNI-c6d24cd1b4bcfa50e7774ac0 -m comment --comment name: "podman" id: "buildah-buildah1500910596" --wait]: exit status 2: iptables v1.8.7 (nf_tables): Chain 'CNI-c6d24cd1b4bcfa50e7774ac0' does not exist
Try `iptables -h' or 'iptables --help' for more information.

2022-12-01T15:05:02.000125774Z: the container `buildah-buildah1500910596` is not in 'stopped' state
error running container: did not get container start message from parent: EOF
Error: error building at STEP "RUN apk update": plugin type="bridge" failed (add): cni plugin bridge failed: failed to list chains: running [/usr/sbin/iptables -t nat -S --wait]: exit status 1: iptables v1.8.7 (nf_tables): table `nat' is incompatible, use 'nft' tool.


FROM alpine:3.16.2
RUN apk update
RUN apk add --no-cache bind
USER named
EXPOSE 53/udp
CMD ["named", "-c", "/etc/bind/named.conf", "-g"]

Not sure why this isn’t working, I’m sure doing it manually and using host mode would work, but I believe I’ve done this before

This is a fresh install, the only thing I’ve configured is the Wan/Lan connection so I can ssh

It seems some kind of this bug T3499
As we don’t use iptables and use nftables

Maybe it would make sense for the container generator script to tell it to use host networking to avoid all of that?

There is the original command for generating
I created a bug report T4865

Update. Will be fixed in the next rolling release

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.