zoukankan      html  css  js  c++  java
  • centos7 安装docker

    1、首先cent7 基本是在vm上完全安装‘、

    2、参考官方网站安装

    1、https://wiki.centos.org/AdditionalResources/Repositories

    OS requirements 操作环境准备

    To install Docker CE, you need a maintained version of CentOS 7. Archived versions aren’t supported or tested.

    The centos-extras repository must be enabled. This repository is enabled by default, but if you have disabled it, you need to re-enable it.

    The overlay2 storage driver is recommended.

     yum --enablerepo=extras install centos-release-scl
    

      

    2、https://docs.docker.com/install/linux/docker-ce/centos/

    $ sudo yum install -y yum-utils
    
    
    
    $ sudo yum-config-manager 
        --add-repo 
        https://docs.docker.com/v1.13/engine/installation/linux/repo_files/centos/docker.repo
    
    
    
    
    $ sudo yum-config-manager --enable docker-testing
    
    
    $ sudo yum makecache fast
    
    
    $ sudo yum -y install docker-engine
    

      最后一步直接安装稳定版本

    或者也可以安装指定版本:

    查看有哪些版本可以安装
    
    $ yum list docker-engine.x86_64  --showduplicates |sort -r
    
    docker-engine.x86_64  1.13.0-1.el7                               docker-main
    docker-engine.x86_64  1.12.5-1.el7                               docker-main   
    docker-engine.x86_64  1.12.4-1.el7                               docker-main   
    docker-engine.x86_64  1.12.3-1.el7                               docker-main   
    
    
    安装指定版本
    
    $ sudo yum -y install docker-engine-<VERSION_STRING>
    

     

    测试:

    Start Docker.
    
    $ sudo systemctl start docker
    Verify that docker is installed correctly by running the hello-world image.
    
    $ sudo docker run hello-world
    

      

  • 相关阅读:
    poj3167
    poj2752 bzoj3670
    poj2886
    poj3294
    [luoguP2564][SCOI2009]生日礼物(队列)
    [luoguP1866]滑动窗口(单调队列)
    [luoguP1198][JSOI2008] 最大数(线段树 || 单调栈)
    [HDU4348]To the moon(主席树)
    [luoguP1168]中位数(主席树+离散化)
    [HDU4417]Super Mario(主席树+离散化)
  • 原文地址:https://www.cnblogs.com/cbugs/p/8729331.html
Copyright © 2011-2022 走看看