-
Notifications
You must be signed in to change notification settings - Fork 0
/
Installing_docker_ubuntu
29 lines (21 loc) · 1.06 KB
/
Installing_docker_ubuntu
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
----------------Docker---------------------
/> sudo apt-get remove docker docker-engine docker.io
/> sudo apt-get update
/> sudo apt install -y docker.io
/> sudo snap install docker
/> docker --version
https://www.simplilearn.com/tutorials/docker-tutorial/how-to-install-docker-on-ubuntu
----------------Docker-compose---------------------
/> sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
/> sudo chmod +x /usr/local/bin/docker-compose
/> docker-compose --version
https://docs.docker.com/compose/install/
I used the following cause (sudo snap install docker) gave me an error!
1. sudo apt update
2. sudo apt install apt-transport-https ca-certificates curl software-properties-common
3. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
5. sudo apt update
6. apt-cache policy docker-ce
7. sudo apt install docker-ce
8. sudo systemctl status docker