docker-for-coco

2021-03-02  本文已影响0人  hemiao3000

1. 安装、配置 Ubuntu

本部分内容是安装、配置 Ubuntu 操作系统,本质上与安装 Code Combat 无关。你装不装 codecombat,你的 Ubuntu 系统都是这么装的。

sudo apt remove thunderbird rhythmbox libreoffice-*
sudo apt autoremove
sudo apt install net-tools openssh-server
sudo vi /etc/apt/sources.list
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

2. 安装、配置 docker

本部分内容是安装、配置 Docker ,本质上与安装 codecombat 无关。你装不装 codecombat,你的 Docker 都是这么装的。

  1. 卸载旧版本。

    sudo apt remove \
      docker \
      docker-engine \
      docker-ce \
      docker.io
    
  2. 配置 docker 软件源

    sudo apt install \
      apt-transport-https \
      ca-certificates \
      curl \
      software-properties-common
    
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
    sudo add-apt-repository \
      "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) \
      stable"
    
    sudo apt update
    
  3. 安装 docker

安装 codecombat

从这里开始,以下操作才与 codecombat 有直接关系。

上一篇 下一篇

猜你喜欢

热点阅读