summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/networking.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/networking.go b/libpod/networking.go
index 082aae20d..3819d803d 100644
--- a/libpod/networking.go
+++ b/libpod/networking.go
@@ -63,6 +63,8 @@ func (r *Runtime) createNetNS(ctr *Container) (err error) {
}
}()
+ logrus.Debugf("Made network namespace at %s for container %s", ctrNS.Path(), ctr.ID())
+
podNetwork := getPodNetwork(ctr.ID(), ctr.Name(), ctrNS.Path(), ctr.config.PortMappings)
if err := r.netPlugin.SetUpPod(podNetwork); err != nil {
@@ -118,6 +120,8 @@ func (r *Runtime) teardownNetNS(ctr *Container) error {
return nil
}
+ logrus.Debugf("Tearing down network namespace at %s for container %s", ctr.state.NetNS.Path(), ctr.ID())
+
portMappings, err := portMappingToHostport(ctr.config.PortMappings)
if err != nil {
logrus.Errorf("Failed to generate port mappings for container %s: %v", ctr.ID(), err)