Docker Community Forums

Share and learn in the Docker community.

Install docker with a customized kernel

docker

(Jiapei100) #1

Hi, all:

I just try to install docker-ce with the NEWEST kernel http://kernel.ubuntu.com/~kernel-ppa/mainline/ under Ubuntu 16.04.3.

I’m now using the kernel:

jiapei@jiapei-GT72-6QE:~$ uname -r
4.14.5-041405-generic
jiapei@jiapei-GT72-6QE:~$ uname -a
Linux jiapei-GT72-6QE 4.14.5-041405-generic #201712101332 SMP Sun Dec 10 13:33:10 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

But I failed to install docker-ce with the following ERROR message:

jiapei@jiapei-GT72-6QE:~$ sudo apt install docker-ce
[sudo] password for jiapei: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
docker-ce is already the newest version (17.09.1~ce-0~ubuntu).
The following packages were automatically installed and are no longer required:
  bbswitch-dkms libjansson4 libxnvctrl0 screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up docker-ce (17.09.1~ce-0~ubuntu) ...
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2017-12-17 19:22:06 CST; 5ms ago
     Docs: https://docs.docker.com
  Process: 15122 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 15122 (code=exited, status=1/FAILURE)

Dec 17 19:22:06 jiapei-GT72-6QE systemd[1]: Failed to start Docker Application Container Engine.
Dec 17 19:22:06 jiapei-GT72-6QE systemd[1]: docker.service: Unit entered failed state.
Dec 17 19:22:06 jiapei-GT72-6QE systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up python3-scipy (0.17.0-1) ...
[Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/scipy/_lib/decorator.py'
dpkg: error processing package python3-scipy (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 docker-ce
 python3-scipy
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can anybody give me a hand on how to install docker-ce with a customized kernel?

Thank you very much
Pei