疯狂的企鹅

Crazy.Rico's Blog


  • 首页

  • 归档

  • 关于

  • 标签

  • 分类

  • links

  • 搜索

Docker之旅-CentOS7中安装Docker

发表于 2017-03-24 更新于 2020-04-16 分类于 微服务 , docker 阅读次数:
本文字数: 636 阅读时长 ≈ 1 分钟

CentOS7中安装Docker服务支持

yum update

1
$ sudo yum update

Get Docker CE on CentOS

You can install Docker CE on CentOS in just three steps.
Enterprise customers can also install Docker EE for CentOS.
Prerequisites

Docker CE is supported on CentOS 7.3 64-bit.

1. Set up the repository

Set up the Docker CE repository on CentOS:

1
2
3
4
5
6
7
$ sudo yum install -y yum-utils

$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo

$ sudo yum makecache fast

2. Get Docker CE

Install the latest version of Docker CE on CentOS:

1
$ sudo yum -y install docker-ce

Start Docker:

1
$ sudo systemctl start docker

3. Test your Docker CE installation

Test your installation:

1
$ sudo docker run hello-world

设置为开机自启

1
$ sudo chkconfig docker on
-------------本文结束感谢您的阅读-------------
Crazy Rico wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!
Crazy Rico 微信支付

微信支付

Crazy Rico 支付宝

支付宝

# 微服务 # docker
Docker之旅-介绍
文档书写工具-gitbook介绍
  • 文章目录
  • 站点概览
Crazy Rico

Crazy Rico

33 日志
17 分类
39 标签
RSS
GitHub FCC E-Mail 慕课网 阿里云
  1. 1. CentOS7中安装Docker服务支持
  2. 2. yum update
  3. 3. Get Docker CE on CentOS
    1. 3.1. 1. Set up the repository
    2. 3.2. 2. Get Docker CE
    3. 3.3. 3. Test your Docker CE installation
苏ICP备17004952号 © 2020 Crazy Rico | 90k | 1:22
由 Hexo 强力驱动 v3.9.0
|
主题 – NexT.Gemini v7.3.0
|
0%