update the iptables test image to get a newer iptables binary

PiperOrigin-RevId: 581274930
This commit is contained in:
Kevin Krakauer
2023-11-10 08:59:16 -08:00
committed by gVisor bot
parent 56be4a9921
commit 83c032ae46
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
FROM ubuntu
FROM ubuntu:mantic
RUN apt update && apt install -y iptables
+2 -2
View File
@@ -39,9 +39,9 @@ func natTable(ipv6 bool, args ...string) error {
func tableCmd(ipv6 bool, table string, args []string) error {
args = append([]string{"-t", table}, args...)
binary := "iptables"
binary := "iptables-legacy"
if ipv6 {
binary = "ip6tables"
binary = "ip6tables-legacy"
}
cmd := exec.Command(binary, args...)
if out, err := cmd.CombinedOutput(); err != nil {