瀏覽代碼

docker

master
Coesens Bert 2 年之前
父節點
當前提交
7710cc40ac
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      install-docker.sh

+ 8
- 0
install-docker.sh 查看文件

@@ -0,0 +1,8 @@
#/bin/bash

#Install Docker
apt install ca-certificates curl gnupg lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt install docker-ce docker-ce-cli containerd.io -y

Loading…
取消
儲存