📌  相关文章
📜  安装 docker ubuntu 20.04 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:46.148000             🧑  作者: Mango

代码示例6
apt-get update -y &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg &&
echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null &&
apt-get update &&
apt-get upgrade -y &&
apt-get install docker-ce docker-ce-cli containerd.io -y