1. 安装基础工具

     apt-get update
     apt-get install \
     apt-transport-https \
     ca-certificates \
     curl \
     gnupg \
     lsb-release
    
  1. 安装docker的gpg key:

    curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

  2. 安装docker源

    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

  3. 安装docker

    apt-get update
    apt-get install docker-ce docker-ce-cli containerd.io

简单而无聊的一天,天气不错。新开篇,新变动,风起。。。。。