本文以Docker 1.11为例,介绍如何在CentOS 7上手工安装Docker Engine
安装步骤
下载docker binary
$wget https://get.docker.com/builds/Linux/x86_64/docker-1.11.0.tgz
解压缩,安装
$tar xzf docker-1.11.0.tgz
$sudo mv docker/* /usr/bin
创建docker组
$sudo groupadd docker
$sudo usermod -aG docker $USER
配置docker服务
$sudo wget https://github.com/docker/docker/raw/v1.11.2/contrib/init/systemd/docker.service -O /usr/lib/systemd/system/docker.service $sudo wget https://github.com/docker/docker/raw/v1.11.2/contrib/init/systemd/docker.socket -O /usr/lib/systemd/system/docker.socket
$sudo systemctl daemon-reload
$sudo systemctl enable docker.service
$sudo reboot
参考文档
https://docs.docker.com/engine/installation/binaries/
更多Docker相关教程见以下内容:
Docker安装应用(CentOS 6.5_x64) http://www.linuxidc.com/Linux/2014-07/104595.htm
Ubuntu 14.04安装Docker http://www.linuxidc.com/linux/2014-08/105656.htm
Ubuntu使用VNC运行基于Docker的桌面系统 http://www.linuxidc.com/Linux/2015-08/121170.htm
阿里云CentOS 6.5 模板上安装 Docker http://www.linuxidc.com/Linux/2014-11/109107.htm
Ubuntu 15.04下安装Docker http://www.linuxidc.com/Linux/2015-07/120444.htm
在Ubuntu Trusty 14.04 (LTS) (64-bit)安装Docker http://www.linuxidc.com/Linux/2014-10/108184.htm
在 Ubuntu 15.04 上如何安装Docker及基本用法 http://www.linuxidc.com/Linux/2015-09/122885.htm
Ubuntu 16.04上Docker使用手记 http://www.linuxidc.com/Linux/2016-12/138490.htm
Docker 的详细介绍:请点这里
Docker 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-04/142528.htm