forked from aliascash/alias-wallet-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_docker_debian.sh
More file actions
41 lines (33 loc) · 1.11 KB
/
install_docker_debian.sh
File metadata and controls
41 lines (33 loc) · 1.11 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
#!/bin/bash
# ============================================================================
#
# Docker installation based on
# https://docs.docker.com/install/linux/docker-ce/debian/#install-docker-ce-1
#
# Creation: 2018-07-25 hlxeasy
#
# ============================================================================
# Remove potential old versions
sudo apt-get remove docker docker-engine docker.io
# Update the apt package index
sudo apt-get update
# Install packages to allow apt to use a repository over HTTPS
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# Set up the stable repository
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
# Update the apt package index again
sudo apt-get update
# Install the latest version of Docker CE
sudo apt-get install docker-ce
# Test installation by running the hello-world-container
sudo docker run hello-world