zoukankan      html  css  js  c++  java
  • docker容器技术

    0、环境准备类:
    
    curl  http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    
    
    yum install -y yum-utils device-mapper-persistent-data lvm2
    
    
    yum list docker-ce.x86_64 --showduplicates | sort -r
    
    
    yum install -y --setopt=obsoletes=0 
    docker-ce-17.03.2.ce-1.el7.centos.x86_64 
    docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
    
    
    systemctl daemon-reload
    systemctl restart docker
    
    docker version
    docker  info
    
    
    配置镜像加速
    
    
    阿里云Docker-hub
    
    https://cr.console.aliyun.com/cn-hangzhou/mirrors
    
    mkdir -p /etc/docker
    
    tee /etc/docker/daemon.json <<-'EOF'
    {
       "registry-mirrors": ["https://68rmyzg7.mirror.aliyuncs.com"]
    }
    EOF      
          
          
    或者:
    
    vim   /etc/docker/daemon.json
    
        {
             "registry-mirrors": ["https://68rmyzg7.mirror.aliyuncs.com"]
        }
    
    
    1. pull常用镜像
    docker pull  centos:6.9
    docker pull  centos:7.5.1804
    docker pull  nginx
    
    
    
    CPU   MEM   IO
    
    OS  :  Kernel
  • 相关阅读:
    嵌入式(C)笔试题
    经典C语言编程注意点
    深拷贝和浅拷贝(一)
    拷贝构造函数
    树与二叉树的概念
    线性数据结构
    排序算法_冒泡排序
    排序算法_选择排序
    机器学习_支持向量机
    数据库_11_1~10总结回顾+奇怪的NULL
  • 原文地址:https://www.cnblogs.com/xuqidong/p/11785916.html
Copyright © 2011-2022 走看看