-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-init.sh
More file actions
35 lines (26 loc) · 792 Bytes
/
Copy pathdocker-init.sh
File metadata and controls
35 lines (26 loc) · 792 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
27
28
29
30
31
32
33
34
35
#!/bin/sh
# https://docs.docker.com/engine/install/ubuntu/
apt update
apt upgrade -y
apt install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common \
mc \
net-tools
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt update
apt install \
docker-ce=5:19.03.14~3-0~ubuntu-focal \
docker-ce-cli=5:19.03.14~3-0~ubuntu-focal \
containerd.io \
curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
groupadd docker
sudo usermod -aG docker $USER