Package: docker.io / 1.11.2~ds1-6

fatal-error-old-kernels.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Docker is unsupported on kernels < 3.10, so this turns the warning into a fatal error (hard failure)
Forwarded: not-needed
Author: Tianon Gravi <admwiggin@gmail.com>
Reviewed-by: Paul Tagliamonte <paultag@debian.org>

diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go
index 8ea6c5c..1629d38 100644
--- a/daemon/daemon_unix.go
+++ b/daemon/daemon_unix.go
@@ -87,7 +87,7 @@ func checkKernel() error {
 	if !checkKernelVersion(3, 10, 0) {
 		v, _ := kernel.GetKernelVersion()
 		if os.Getenv("DOCKER_NOWARN_KERNEL_VERSION") == "" {
-			logrus.Warnf("Your Linux kernel version %s can be unstable running docker. Please upgrade your kernel to 3.10.0.", v.String())
+			logrus.Fatalf("Your Linux kernel version %s is unstable running Docker. Please upgrade your kernel to 3.10+.", v.String())
 		}
 	}
 	return nil