-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerinstall.sh
More file actions
31 lines (26 loc) · 877 Bytes
/
dockerinstall.sh
File metadata and controls
31 lines (26 loc) · 877 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
#!/bin/bash
# this script target bionic64.
# see also:https://docs.docker.com/install/linux/docker-ce/ubuntu/
# set up the repository
sudo apt update
sudo apt -y install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# point:fingeprint check
# sudo apt-key fingerprint 0EBFCD88
# pub rsa4096 2017-02-22 [SCEA]
# 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
# uid [ unknown] Docker Release (CE deb) <docker@docker.com>
# sub rsa4096 2017-02-22 [S]
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# install docker
sudo apt update
sudo apt -y install docker-ce docker-ce-cli containerd.io
exit 0