环境搭建- -Docker
Docker 部署安装
安装 Docker
-
安装 Docker
1
2
3
4
5
6
7
8
9
10在 RHEL6 和 CentOS 中安装 Docker
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # 安装 epel
yum -y install docker-io # 安装 Docker 软件包
在 RHEL7 中安装 Docker
设置 yum 源
yum -y install yum-utils
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
查看 docker-ce 版本列表
yum list docker-ce --showduplicates | sort -r
yum install -y docker-ce -
启动 Docker 守护进程
1
2
3
4
5
6
7
8
9
10RHEL6 或 CentOS6 启动
service docker start # 启动
service docker stop # 停止
service docker enable # 开机自启动
RHEL7 启动
systemctl start docker # 启动
systemctl stop docker # 停止
systemctl enable docker # 开机启动
查看是否安装正确并运行
docker info
推荐文章
-
2021-02-26
docker 容器学习
-
2022-11-10
-
2020-03-10
分布式系统是若干独立计算机的集合,这些计算机对于用户来说就像单个相关系统。
-
2020-11-19
学习新技术提升自我价值,Kubernetes 是 Google 开源的容器集群管理系统,对于容器运行时、编排、常规服务都抽象设计出标准完整的 API。
-
2022-05-16
学习新技术提升自我价值,Kubernetes 是 Google 开源的容器集群管理系统,对于容器运行时、编排、常规服务都抽象设计出标准完整的 API。