中科大debian 9 + docker源設定

DukeCheng發表於2018-11-03


wget https://mirrors.ustc.edu.cn/repogen/conf/debian-http-4-stretch -O sources.list

sudo apt-get install \
      apt-transport-https \
      ca-certificates \
      curl \
      gnupg2 \
      software-properties-common

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - && \
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository    "deb [arch=amd64] https://download.docker.com/linux/debian \
    $(lsb_release -cs) \
    stable" && \
sed -i 's/download.docker.com/mirrors.ustc.edu.cn\/docker-ce/g' /etc/apt/sources.list


mkdir -p /etc/docker && \
cat > /etc/docker/daemon.json <<EOF
{
   "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"]
}
EOF


   
apt-get install docker-ce

相關文章