-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-docker.sh
More file actions
executable file
·41 lines (34 loc) · 963 Bytes
/
Copy pathinstall-docker.sh
File metadata and controls
executable file
·41 lines (34 loc) · 963 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
36
37
38
39
40
41
#!/usr/bin/env bash
source ./console-log.sh
# Documentation
# https://docs.docker.com/engine/installation/linux/ubuntu/#install-docker
sudo apt-get update
# Recommended packages
sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
-y
# Setup the repository
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
-y
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Setup the stable repository
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install \
docker-ce \
docker-compose \
-y
sudo groupadd docker
sudo usermod -aG docker $USER
consoleLog "Docker installation completed"
consoleLog "Log out and log back in so that your group \
membership is re-evaluated."