-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall-docker.sh
More file actions
executable file
·63 lines (42 loc) · 1.52 KB
/
install-docker.sh
File metadata and controls
executable file
·63 lines (42 loc) · 1.52 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apt-get install -y mc ncdu htop sysstat iftop glances
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
zsh
# Make zsh default shell
chsh -s $(which zsh)
echo 'deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable' >> /etc/apt/sources.list.d/docker.list
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
# Old production version
#sudo apt-get install -y docker-ce=18.06.3~ce~3-0~ubuntu
# New production version
sudo apt-get install -y \
docker-ce=5:19.03.5~3-0~ubuntu-bionic \
docker-ce-cli=5:19.03.5~3-0~ubuntu-bionic \
containerd.io
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
mkdir -p ~/.docker
cp config.json ~/.docker
# Install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Append custom config to zsh
cat zshrc-append.txt >> ~/.zshrc
# Remove news on login
rm /etc/update-motd.d/10-help-text
rm /etc/update-motd.d/50-motd-news
if [ ! -f ~/.ssh/id_rsa ]; then
ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa
fi
touch ~/.ssh/authorized_keys
echo "-----------------------"
cat ~/.ssh/id_rsa.pub