目前docker-ce 17.03版本,官方要求Debian版本大于wheezy 7.7或者Linux Kernel版本大于3.10,因此需要升级默认Debian 7的3.2.0内核版本。官方说明
添加官方backports源:
vi /etc/apt/sources.list
deb http://ftp.debian.org/debian/ wheezy-backports main
# 或者用下方阿里的源也可以
# deb http://mirrors.aliyun.com/debian-backports/ wheezy-backports main contrib non-free
# deb-src http://mirrors.aliyun.com/debian-backports/ wheezy-backports main contrib non-free
然后获取最新包版本:
apt-get update && apt-get -t wheezy-backports upgrade
可以查看一下支持的内核版本有哪些:
aptitude search linux-image
直接安装最新内核:
apt-get -t wheezy-backports install linux-image-amd64
安装完后reboot即可。
重启进入系统 uname -a
可以看到Linux 已经是3.16了。
可以删除旧版本内核。
# 查看系统中存在的内核
dpkg --get-selections |grep linux-image
# 删除旧的内核
apt-get remove linux-image-3.2.0-4-amd64