zoukankan      html  css  js  c++  java
  • centos 7 安装docker教程

    CentOS7.x安装Docker

    # 安装依赖包

    yum install -y yum-utils device-mapper-persistent-data lvm2

    # 添加Docker软件包源

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

    # 安装最新版Docker CE

    yum install -y docker-ce

    #安装指定版本,可以使用yum list列出可用的版本:

    yum list docker-ce --showduplicates | sort -r

    yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io

    比如这里需要安装18.09.9版本

    yum -y install docker-ce-18.09.9-3.el7

    # 启动Docker服务并设置开机启动

    systemctl start docker

    systemctl enable docker

    官方文档:https://docs.docker.com

    阿里云源:http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

    添加 docker 镜像加速:https://www.daocloud.io/mirror

    curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io

    163镜像加速

    http://hub-mirror.c.163.com

  • 相关阅读:
    编码
    浏览器翻页
    验证码识别
    时间
    phantomjs配置
    产品
    java范型的理解
    使用JDBC连接数据库
    垃圾回收机制
    java的内存区域 && java内存模型
  • 原文地址:https://www.cnblogs.com/qiansm/p/13360639.html
Copyright © 2011-2022 走看看