centos under docker lead to upgrade the kernel

Then the article

Shaped like a following error

1
2
$ docker run --rm -ti ubuntu:14.04 bin/bash                                       
FATA[0000] Error response from daemon: mkdir /var/lib//overlay/c4a8f5e516d401534f2d994f5546f7e08639ffd675eb3573267f76d79394f172-init/merged/dev/shm: invalid argument

Centos docker normal installation, pull the mirror normal, is given at the time of starting container

The most Taniuta, github

https://github.com/docker/docker/issues/10294

First check docker info

If there is

1
2
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

You need to add kernel parameters, specific spotted a

After seeing

1
2
3
4
5
6
Fixed...

from docker official site.

To configure Docker to use the overlay storage driver your Docker host must be running version 3.18 of the Linux kernel (preferably newer) with the overlay kernel module loaded. OverlayFS can operate on top of most supported Linux filesystems. However, ext4 is currently recommended for use in production environments.
so, update kernel from 3.10.0 to 3.18.0 + fixed the issue.

Centos prompt us to upgrade the kernel 3.10.0 to 3.18.0 +

Upgrading the kernel

Check the machine kernel version

1
2
uname -r
4.9.6-1.el7.elrepo.x86_64

Here I was upgraded after writing the article, prior to the upgrade 3.10

View Linux kernel versions

Web site address

Stable version 4.9.7

Import key

1
rpm --import https:

Yum source of mounting elrepo

1
rpm -Uvh http:

Installing the kernel

1
yum --enablerepo=elrepo-kernel install  kernel-ml-devel kernel-ml -y

View the default boot sequence

1
2
3
4
5
6
awk -F' '$1=="menuentry " {print $2}' /etc/grub2.cfg
CentOS Linux (4.9.6-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (3.10.0-514.2.2.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-327.22.2.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-7d26c16f128042a684ea474c9e2c240f) 7 (Core)

Adjust the boot sequence

1
grub2-set-default 0

Restart

1
reboot

verification

1
2
 uname -r
4.9.6-1.el7.elrepo.x86_64

success

Original: Large column  under centos docker lead to upgrade the kernel


Guess you like

Origin www.cnblogs.com/petewell/p/11445342.html