zoukankan      html  css  js  c++  java
  • Centos 7 离线安装Docker和Docker Compose

    Centos7.5下载

    。下载地址:链接:https://pan.baidu.com/s/1ht8N0ES_q8V5Of-gN3dzYQ 提取码:6j8k

    。阿里云站点:http://mirrors.aliyun.com/centos/7/isos/x86_64/

    1、Docker下载rpm包

    。安装downloadonly

    sudo yum install yum-plugin-downloadonly

    。下载Docker安装包

     yum install --downloadonly --downloaddir=/tmp/7.5/ docker-1.13.1

    2、Docker下载rpm包

    https://download.docker.com/linux/centos/7/x86_64/stable/Packages/

    。Docker-compose下载

     curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

    以上就是centos7安装包、docker的rpm、docker-compose准备工作(拷贝出来)

    。离线安装

    安装Linux Centos 7系统

    。mount -o loop xxx.iso /mnt

    。/etc/yum.repos.d/  备份其它.repo 只留一个repo文件,修改baseurl=file:///mnt,保存退出

    yum clean;yum makecache

    yum install -y .rpm

    安装Dcoker.rpm包

    安装docker-compose包

    。cp docker-compose /user/local/bin/docker-compose

    。chmod +x /user/local/bin/docker-compose

  • 相关阅读:
    杂项_做个游戏(08067CTF)
    杂项_白哥的鸽子
    杂项_隐写3
    杂项_come_game
    杂项_多种方法解决
    杂项_闪的好快
    杂项_隐写2
    杂项_宽带信息泄露
    杂项_啊哒
    杂项_猜
  • 原文地址:https://www.cnblogs.com/chang-gong/p/13200374.html
Copyright © 2011-2022 走看看