zoukankan      html  css  js  c++  java
  • Ubuntu Docker安装

    docker容器改变apt-get源

    记得先:apt-get update

    进入容器
    cd /etc/apt
    echo "">sources.list
    echo "deb http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse">>sources.list
    echo "deb http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse">>sources.list
    echo "deb http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse">>sources.list
    echo "deb http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse">>sources.list
    echo "deb http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse">>sources.list
    echo "deb-src http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse">>sources.list
    echo "deb-src http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse">>sources.list
    echo "deb-src http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse">>sources.list
    echo "deb-src http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse">>sources.list
    echo "deb-src http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse">>sources.list

     或者

    deb http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ artful-backports main restricted universe multiverse

    安装Docker:

    运行脚本:

    脚本地址:
    https://get.docker.com
  • 相关阅读:
    如何进入docker 使用root用户的方式
    阿里云服务搭建nginx并配置
    阿里云容器部署Redis集群
    Redis运维利器 -- RedisManager
    远程连接-使用SSH密钥对远程登录阿里云云服务器
    第1课:SQL注入原理深度解析
    数据库设计三大范式
    linux指令大全(归类整理)
    linux目录结构
    linux-创建/使用快照/克隆(类似windows中备份还原)
  • 原文地址:https://www.cnblogs.com/jiangzhaowei/p/9899826.html
Copyright © 2011-2022 走看看