CentOS 7 上安装 Docker
来源:互联网 发布:2010年流行网络歌曲 编辑:程序博客网 时间:2024/05/22 10:02
from:
http://www.linuxidc.com/Linux/2014-12/110034.htm
Docker 软件包已经包括在默认的 CentOS-Extras 软件源里。因此想要安装 docker,只需要运行下面的 yum 命令:
[root@localhost ~]# yum install docker
安装完成后,使用下面的命令来启动 docker 服务,并将其设置为开机启动:
[root@localhost ~]# service docker start
[root@localhost ~]# chkconfig docker on
下载官方的 CentOS 镜像到本地
[root@localhost ~]# docker pull centos
确认 CentOS 镜像已经被获取:
[root@localhost ~]# docker images centos
运行一个 Docker 容器:
[root@localhost ~]# docker run -i -t centos /bin/bash
[root@dbf66395436d /]#
我们可以看到,CentOS 容器已经被启动,并且我们得到了 bash 提示符。在 docker 命令中我们使用了 “-i 捕获标准输入输出”和 “-t 分配一个终端或控制台”选项。若要断开与容器的连接,输入 exit。
[root@cd05639b3f5c /]# cat /etc/RedHat-release
CentOSLinux release 7.0.1406(Core)
[root@cd05639b3f5c /]#exit
exit
[root@localhost ~]#
- CentOS 7 上安装 Docker
- CentOS上安装Docker
- CentOS 7 上安装 Docker 详解
- Centos 7 上安装Docker实践
- CentOS 7上安装Docker 1.8
- CentOS 7上安装Docker 1.8
- 如何在 CentOS 7 上安装 Docker
- 如何在 CentOS 7 上安装 Docker
- 在Centos上安装Docker
- Docker安装在Centos上
- centos 上安装docker和docker-compose
- centos 7安装docker
- Centos 7 安装 docker
- Centos 7安装Docker
- CentOS 7安装Docker
- centos 7 安装 Docker
- CentOS 7 安装docker
- CentOS-7安装Docker
- WordPress——怎么在WP后台查看日志、分类的ID?
- mybatis与spring整合(方式二)
- win10 Anaconda tensorflow
- Spring MVC 3 总结
- 算法--实现1+2+3...+n,要求不能使用乘除法、循环、条件判断、选择相关的关键字。(详细讲解)
- CentOS 7 上安装 Docker
- 验证token
- jQuery选择器和选取方法
- [ML笔记]梯度下降和线性梯度下降
- ssm整合的配置文件
- 我的头像的字符画
- ACM动态规划总结
- 2017腾讯编程题----游戏人物标记
- TopCoder SRM 718