1、docker安装环境检查
1.1 内核root@tu-OptiPlex-9020:~# uname -aLinux tu-OptiPlex-9020 3.19.0-39-generic #44~14.04.1-Ubuntu SMP Wed Dec 2 10:00:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 1.2 更新内核root@tu-OptiPlex-9020:~# sudo apt-get update root@tu-OptiPlex-9020:~# sudo apt-get install 内核名称1.3检查device mapper root@tu-OptiPlex-9020:~# ls -l /sys/class/misc/device-mapper lrwxrwxrwx 1 root root 0 12月 14 13:38 /sys/class/misc/device-mapper -> ../../devices/virtual/misc/device-mapper 如果没有,安装加载mapper root@tu-OptiPlex-9020:~# sudo modprobe dm_mod
2、docker安装 sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" apt-get install -y curl sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9apt-get updatesudo apt-get install -y lxc-docker