From 7c414a7c9971c16580a723c6bce6c3335b7b7c12 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 9 Dec 2022 15:29:45 +0000 Subject: T4865: Fix to generate container image from the file In case if we want generate own container image from a Dockerfile and if it requires update or install packages in container we get error. As it tries to use default network 'podman' and do own NAT translations via 'iptables'. If fact we don't use iptables in 1.4 As result it cannot build such image. Use '--net host' to fix it. --- op-mode-definitions/container.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op-mode-definitions/container.xml.in') diff --git a/op-mode-definitions/container.xml.in b/op-mode-definitions/container.xml.in index 97a087ce2..786bd66d3 100644 --- a/op-mode-definitions/container.xml.in +++ b/op-mode-definitions/container.xml.in @@ -69,7 +69,7 @@ <filename> - sudo podman build --layers --force-rm --tag "$4" $6 + sudo podman build --net host --layers --force-rm --tag "$4" $6 -- cgit v1.2.3