CentOS 7 中 Docker 的安装
2017-09-18 11:02
302 查看
Docker 软件包已经包括在默认的 CentOS-Extras 软件源里。因此想要安装 docker,只需要运行下面的 yum 命令:
[root@localhost ~]# yum install docker
[root@localhost ~]# service docker start
[root@localhost ~]# chkconfig docker on
(LCTT 译注:此处采用了旧式的 sysv 语法,如采用CentOS 7中支持的新式 systemd 语法,如下:
[root@localhost ~]# systemctl start docker.service
[root@localhost ~]# systemctl enable docker.service
)
[root@localhost ~]# yum install docker
启动 Docker 服务
安装完成后,使用下面的命令来启动 docker 服务,并将其设置为开机启动:[root@localhost ~]# service docker start
[root@localhost ~]# chkconfig docker on
(LCTT 译注:此处采用了旧式的 sysv 语法,如采用CentOS 7中支持的新式 systemd 语法,如下:
[root@localhost ~]# systemctl start docker.service
[root@localhost ~]# systemctl enable docker.service
)
相关文章推荐
- CentOS 7.2安装Docker-ce
- 在Centos中安装Docker CE
- Centos 6 安装Docker
- centos上的docker安装
- CentOS下Docker 安装
- 在RedHat/CentOS下安装Docker(不升级内核)
- CentOS平台下的Docker安装与启动
- centos6.5 安装docker报错
- centos6.5下 docker下gitlab的部署安装
- centos6.5下安装docker
- centos6.5 x86_64系统安装docker之前做的准备
- centos7上docker安装和使用教程
- centos7下安装docker(23.docker-swarm之如何访问service)
- 在centos和redhat上安装docker
- CentOS Docker 安装
- CentOS6.5安装Docker
- docker探索-在centos6.5中安装docker(三)
- 安装docker 12及版本以上(只适合centOS7)
- Centos6.5 安装Docker