Debian10 / 11 默认的内核就是 4.19 版本的内核而且编译了 TCP BBR 模块,所以可以直接通过参数开启

          echo net.core.default_qdisc=fq >> /etc/sysctl.conf
          echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf
          sysctl -p

执行 lsmod | grep bbr ,检测 BBR 是否开启

  1. 安装基础工具

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

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

  3. 安装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

  4. 安装docker

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