Skip to content

Commit

Permalink
Replace error with a warning when iptables fails
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeHat committed Feb 23, 2022
1 parent c6ff217 commit 121059d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,11 @@ func (d *DockerRuntime) postCreateNetActions() (err error) {
if err != nil {
log.Warnf("failed to disable TX checksum offloading for the %s bridge interface: %v", d.mgmt.Bridge, err)
}

return d.installIPTablesFwdRule()
err = d.installIPTablesFwdRule()
if err != nil {
log.Warnf("failed to install iptables rules: %v", err)
}
return nil
}

// DeleteNet deletes a docker bridge
Expand Down

0 comments on commit 121059d

Please sign in to comment.