mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Properly cleanup iptables rules inserted in OUTPUT (introduced in 3c6b8bb888
)
This commit is contained in:
parent
690cae0ef4
commit
301a8afff5
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ type PortMapper struct {
|
|||
func (mapper *PortMapper) cleanup() error {
|
||||
// Ignore errors - This could mean the chains were never set up
|
||||
iptables("-t", "nat", "-D", "PREROUTING", "-j", "DOCKER")
|
||||
iptables("-t", "nat", "-D", "OUTPUT", "-j", "DOCKER")
|
||||
iptables("-t", "nat", "-F", "DOCKER")
|
||||
iptables("-t", "nat", "-X", "DOCKER")
|
||||
mapper.mapping = make(map[int]net.TCPAddr)
|
||||
|
|
Loading…
Add table
Reference in a new issue