mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
handle errors during the creation of port mapper
example:
2013/03/22 21:42:55 Unable to setup port networking: Failed to create DOCKER chain
(which was possibly introduced by commit 3c6b8bb88
)
This commit is contained in:
parent
690cae0ef4
commit
371225520f
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ func newNetworkManager(bridgeIface string) (*NetworkManager, error) {
|
|||
}
|
||||
|
||||
portMapper, err := newPortMapper()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
manager := &NetworkManager{
|
||||
bridgeIface: bridgeIface,
|
||||
|
|
Loading…
Reference in a new issue