CentOS7使用阿里yum源安装Docker
yum install -y yum-utils device-mapper-persistent-data lvm2
安装所需的包
# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# 添加官方yum源,速度非常慢,不推荐,忽略
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
添加阿里yum源,速度飞快
yum makecache fast
把服务器的包信息下载到本地缓存起来
yum install docker-ce
安装最新版本的Docker CE(社区版)
按两次Y确认
systemctl start docker
启动Docker
systemctl enable docker
设置开机启动
使用阿里云镜像加速
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
docker run hello-world
通过运行hello-world镜像验证安装是否正确
docker images hello-world
查看hello-world镜像信息
REPOSITORY:来自于哪个仓库
TAG:标签(镜像的发行版本)
IMAGE ID:ID(唯一)
CREATED:创建时间
SIZE:大小
docker version
查看docker版本信息
有Client和Server两部分表示docker安装启动都成功了
docker --version
查看docker版本
# sudo yum remove docker docker-common docker-selinux docker-engine
(彻底卸载)
最新文章
- JQuery的核心的一些方法[扒来的]
- 在tomcat中配置jdk的不同版本
- ThreadPoolExecutor机制
- Github for Windows使用介绍
- 【初识 JQMobile 小小总结】
- Informix SDK對比
- JSF 2 panelGrid example
- File List()列出文件目录
- SQL 查询的执行过程
- iOS极光推送
- OpenCV学习 6:平滑滤波器 cvSmooth()——2
- 树莓派+Android Things
- 转:Jmeter 用户思考时间(User think time),定时器,和代理服务器(proxy server)
- cocos2d-x 读写 xml 文件
- Eclipse 开发设置编码格式--4个修改地方完美
- 【BZOJ1417】Pku3156 Interconnect
- JS产生徐特尔图表
- Namespace declaration statement has to be the very first statement or after any declare call in the script
- Neko and Aki's Prank CodeForces - 1152D (括号序列,dp)
- 初识Qt涂鸦板绘制