在CentOS 7上手动安装Docker Engine

本文以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

参考文档

 

更多Docker相关教程见以下内容

Docker 的详细介绍:请点这里
Docker 的下载地址:请点这里

 
本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-04/142528.htm

相关推荐