CentOS 7环境下安装Docker CE
Docker分为社区版和企业版两种版本,下面演示Docker社区稳定版本的安装过程。
环境信息
CentOS 7.4
Linux 3.10.0-693.17.1.el7.x86_64
Docker CE 17.12.0.ce-1.el7.centos
安装 Docker CE
- check config
安装前对系统资源进行检查
1 | curl https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh > check-config.sh |
- Step1. 安装依赖
1 | sudo yum install -y yum-utils \ |
- Step2. 添加仓库
1 | sudo yum-config-manager \ |
- Step3. 安装Docker CE
1 | sudo yum install docker-ce |
- Step4. 启用、启动Docker
1 | sudo systemctl enable docker |
- Step5. 运行
hello-world
镜像
1 | sudo docker run hello-world |
Reference
- Title: CentOS 7环境下安装Docker CE
- Author: 严少安
- Created at: 2018-02-17 21:01:01
- Updated at: 2018-02-17 21:01:01
- Link: https://shawnyan.cn/2018/docker/docker-install-on-centos/
- License: This work is licensed under CC BY-NC-SA 4.0.
推荐阅读
if (hexo-config('comment.enable') == true && hexo-config('comment.system') != "") {
if (hexo-config('comment.system') == "waline") {
@require "./waline.styl"
} else if (hexo-config('comment.system') == "gitalk") {
@require "./gitalk.styl"
} else if (hexo-config('comment.system') == "twikoo") {
@require "./twikoo.styl"
}
}
.comments-container
display inline-block
margin-top $spacing-unit
width 100%
#comment-anchor
width 100%
height 10px
.comment-area-title
width 100%
margin 10px 0
font-size 1.38rem
color var(--default-text-color)
font-family 'Consolas', '宋体', sans-serif
font-weight bold
i
color var(--default-text-color)
+redefine-tablet()
margin 5px 0
font-size 1.2rem