add apt-get

This commit is contained in:
leo 2024-08-08 05:49:11 +05:00
parent c913d1780b
commit 619eca7da0

View File

@ -10,11 +10,11 @@ set -e
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
apt install -y apt-transport-https ca-certificates curl software-properties-common apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg
add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
apt update -y apt-get update -y
apt install -y docker-ce apt-get install -y docker-ce
trap - EXIT trap - EXIT
echo "Docker installed" echo "Docker installed"