Signed-off-by: Alessandro Boch <aboch@docker.com>
| ... | ... |
@@ -24,7 +24,7 @@ github.com/RackSec/srslog 456df3a81436d29ba874f3590eeeee25d666f8a5 |
| 24 | 24 |
github.com/imdario/mergo 0.2.1 |
| 25 | 25 |
|
| 26 | 26 |
#get libnetwork packages |
| 27 |
-github.com/docker/libnetwork f3c4ca8ce5c128e071bab198c4ed9fd0d08384eb |
|
| 27 |
+github.com/docker/libnetwork ab8f7e61743aa7e54c5d0dad0551543adadc33cf |
|
| 28 | 28 |
github.com/docker/go-events 18b43f1bc85d9cdd42c05a6cd2d444c7a200a894 |
| 29 | 29 |
github.com/armon/go-radix e39d623f12e8e41c7b5529e9a9dd67a1e2261f80 |
| 30 | 30 |
github.com/armon/go-metrics eb0af217e5e9747e41dd5303755356b62d28e3ec |
| ... | ... |
@@ -222,9 +222,11 @@ func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
|
| 222 | 222 |
} |
| 223 | 223 |
|
| 224 | 224 |
// As starting point, disable IPv6 on all interfaces |
| 225 |
- err = setIPv6(n.path, "all", false) |
|
| 226 |
- if err != nil {
|
|
| 227 |
- logrus.Warnf("Failed to disable IPv6 on all interfaces on network namespace %q: %v", n.path, err)
|
|
| 225 |
+ if !n.isDefault {
|
|
| 226 |
+ err = setIPv6(n.path, "all", false) |
|
| 227 |
+ if err != nil {
|
|
| 228 |
+ logrus.Warnf("Failed to disable IPv6 on all interfaces on network namespace %q: %v", n.path, err)
|
|
| 229 |
+ } |
|
| 228 | 230 |
} |
| 229 | 231 |
|
| 230 | 232 |
if err = n.loopbackUp(); err != nil {
|