diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-12-09 15:29:45 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-12-09 15:29:45 +0000 |
commit | 7c414a7c9971c16580a723c6bce6c3335b7b7c12 (patch) | |
tree | 57071d2d23308168973785ad8c85f9d442f6594b /op-mode-definitions/container.xml.in | |
parent | b67f7c85b72b1d3134c2a4ae533e5dcd8cdaa2ca (diff) | |
download | vyos-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.
Diffstat (limited to 'op-mode-definitions/container.xml.in')
-rw-r--r-- | op-mode-definitions/container.xml.in | 2 |
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><filename></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> |