mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
update the iptables test image to get a newer iptables binary
PiperOrigin-RevId: 581274930
This commit is contained in:
committed by
gVisor bot
parent
56be4a9921
commit
83c032ae46
@@ -1,2 +1,2 @@
|
||||
FROM ubuntu
|
||||
FROM ubuntu:mantic
|
||||
RUN apt update && apt install -y iptables
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user