-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathDocker_Installation.txt
50 lines (36 loc) · 1.07 KB
/
Docker_Installation.txt
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
Installing Docker CE on Ubuntu:
Update Ubuntu Libraries
>sudo apt-get update
#Add HTTPS
#>sudo apt-get install \
# apt-transport-https \
# ca-certificates \
# curl \
# gnupg-agent \
# software-properties-common
#Add Docker’s official GPG key:
#>curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#Add Docker APT Repository for Ubuntu:
#>sudo add-apt-repository \
# "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
# $(lsb_release -cs) \
# stable"
#Update APT package index
#>sudo apt-get update
Install Latest version of Docker CE
>sudo apt-get install docker-ce
Or try this
>sudo apt-get install docker.io
Check if docker service is running
>sudo systemctl status docker
If not running, start it
>sudo systemctl start docker
Check if Docker is installed
>docker version
Add ubuntu user to docker user group
>sudo usermod -aG docker ubuntu
or if running on Vagrant
>sudo usermod -aG docker vagrant
Open a new Terminal (duplicate Putty session)
Check by running Docker hello-world image
>docker run -it hello-world