summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-12-09 15:29:45 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-12-09 15:29:45 +0000
commit7c414a7c9971c16580a723c6bce6c3335b7b7c12 (patch)
tree57071d2d23308168973785ad8c85f9d442f6594b
parentb67f7c85b72b1d3134c2a4ae533e5dcd8cdaa2ca (diff)
downloadvyos-1x-7c414a7c9971c16580a723c6bce6c3335b7b7c12.tar.gz
vyos-1x-7c414a7c9971c16580a723c6bce6c3335b7b7c12.zip
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.
-rw-r--r--op-mode-definitions/container.xml.in2
1 files changed, 1 insertions, 1 deletions
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 @@
<list>&lt;filename&gt;</list>
</completionHelp>
</properties>
- <command>sudo podman build --layers --force-rm --tag "$4" $6</command>
+ <command>sudo podman build --net host --layers --force-rm --tag "$4" $6</command>
</tagNode>
</children>
</tagNode>