mirror of https://github.com/docker/docs.git
Merge pull request #5998 from crosbymichael/iptables-wait
Add wait flag to iptables
This commit is contained in:
commit
174ab74755
|
@ -150,7 +150,7 @@ func Raw(args ...string) ([]byte, error) {
|
||||||
if os.Getenv("DEBUG") != "" {
|
if os.Getenv("DEBUG") != "" {
|
||||||
fmt.Printf("[DEBUG] [iptables]: %s, %v\n", path, args)
|
fmt.Printf("[DEBUG] [iptables]: %s, %v\n", path, args)
|
||||||
}
|
}
|
||||||
output, err := exec.Command(path, args...).CombinedOutput()
|
output, err := exec.Command(path, append([]string{"--wait"}, args...)...).CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err)
|
return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue