zoukankan      html  css  js  c++  java
  • Docker Install ,Configure Repository And Deploy V3Ray

    来源1 来源2 来源3

    Docker

    1. Install

    Uninstall old versions

    sudo apt-get remove docker docker-engine docker.io containerd runc -y
    

    Install Docker Engine - Community

    # Update the apt package index
    sudo apt-get update
    # Install packages to allow apt to use a repository over HTTPS
    sudo apt-get install 
        apt-transport-https 
        ca-certificates 
        curl 
        gnupg-agent 
        software-properties-common -y
    # Add Docker’s official GPG key
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    # Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 
    sudo apt-key fingerprint 0EBFCD88
    # Use the following command to set up the stable repository
    sudo add-apt-repository 
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu 
       $(lsb_release -cs) 
       stable" 
    # Update the apt package index.
    sudo apt-get update 
    # Install the latest version of Docker Engine - Community and containerd
    sudo apt-get install docker-ce docker-ce-cli containerd.io -y
    # Verify that Docker Engine - Community is installed correctly by running the hello-world image
    sudo docker run hello-world
    

    running result

    2. Configure

    Ubuntu 16.04+、Debian 8+、CentOS 7

    对于使用 systemd 的系统,请在 /etc/docker/daemon.json 中写入如下内容(如果文件不存在请新建该文件)

    {
      "registry-mirrors": [
        "https://dockerhub.azk8s.cn",
        "https://hub-mirror.c.163.com"
      ]
    }
    

    docker restart

    $ sudo systemctl daemon-reload
    $ sudo systemctl restart docker
    

  • 相关阅读:
    JS防Yahoo的选项卡导航特效
    纯CSS制作简洁带提示的导航
    绿色简单的CSS下拉菜单
    JS+CSS防FLASH效果竖向可折叠的滑动菜单
    鼠标划过快速展开的JS下拉菜单
    ASP.NET页面生命周期(转载)
    JS Eval函数作用(转载)
    Html十个不常用的标签(转载)
    CSS定位学习
    FireBug调试器相关(转载)
  • 原文地址:https://www.cnblogs.com/liyugeng/p/12454008.html
Copyright © 2011-2022 走看看