-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall_docker.sh
More file actions
executable file
·26 lines (21 loc) · 950 Bytes
/
install_docker.sh
File metadata and controls
executable file
·26 lines (21 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# We need sudo to do some stuff
if [ "${EUID}" != "0" ]; then
echo "Please run as root."
exit 1
fi
# Get release name
release_name=`lsb_release -cs`
echo "=================================================================="
echo "===================== Installing Docker =========================="
echo "=================================================================="
# Set up the repository
apt update
apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $release_name stable"
# Install docker CE
apt update
apt install -y docker-ce
echo "=================================================================="
echo "================= Finished installing Docker ====================="
echo "=================================================================="