mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
* do not consider iptables' output an error in case of xtables lock
Docker-DCO-1.1-Signed-off-by: Giuseppe Mazzotta <gdm85@users.noreply.github.com> (github: gdm85)
This commit is contained in:
parent
8622641b58
commit
5e3b643ce6
1 changed files with 5 additions and 0 deletions
|
@ -166,5 +166,10 @@ func Raw(args ...string) ([]byte, error) {
|
|||
return nil, fmt.Errorf("iptables failed: iptables %v: %s (%s)", strings.Join(args, " "), output, err)
|
||||
}
|
||||
|
||||
// ignore iptables' message about xtables lock
|
||||
if strings.Contains(string(output), "waiting for it to exit") {
|
||||
output = []byte("")
|
||||
}
|
||||
|
||||
return output, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue