centos7安装docker

  1. 安装数据存储驱动包

    shell 复制代码
    yum install -y yum-utils device-mapper-persistent-data lvm2
  2. 添加阿里安装源

    shell 复制代码
    yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  3. 自动检测哪个安装源快

    shell 复制代码
    yum makecache fast
  4. 安装docker服务(服务器和客户端都会安装)

    shell 复制代码
    yum -y install docker-ce
  5. 启动docker服务

    shell 复制代码
    service docker start
  6. 查看docker版本

    shell 复制代码
    docker version
  7. 拉取hello-world镜像

    shell 复制代码
    docker pull hello-world
  8. 启动hello-world容器

    shell 复制代码
    docker run hello-world
相关推荐
东风微鸣19 分钟前
提升效率:AI 知识库在软件开发中的应用
docker·云原生·kubernetes·可观察性
Lyndon110719 分钟前
K8S 八 数据存储-高级存储PV PVC 生命周期;配置存储ConfigMap Secret
云原生·容器·kubernetes
刘一说1 小时前
梳理一些 Docker 常用命令
docker·容器·eureka
虚伪的空想家1 小时前
记录es收集日志报错问题as the final mapping would have more than 1 type[XXX,doc]
大数据·elasticsearch·搜索引擎·容器·kubernetes·log-pilot
Shier833_Ww2 小时前
Windows10+WSL2+Docker相关整理
docker·容器·ubuntu20.04·windows10·wsl2
YCY^v^3 小时前
centos 7 开启80,443端口,怎么弄?
linux·运维·centos
北南京海3 小时前
[Linux]进程地址空间
linux·运维·服务器
yzx9910134 小时前
服务器生成图片
运维·服务器
小阳睡不醒8 小时前
小白成长之路-部署Zabbix7(二)
android·运维
杰克逊的日记8 小时前
GPU运维常见问题处理
linux·运维·gpu