ubuntu18.04 install docker

Server is a low profile of Tencent Cloud. It has been stale for a long time. Only the api of the bus was released. Recently it was hacked. , I reinstalled the system, and kept it, I plan to use it to learn docker.

1. Update system software

sudo apt-get update

2. Install dependencies

sudo apt-get install \    
apt-transport-https \ ca-certificates \    curl \ gnupg-agent \    
software-properties-common

3. Download and install the secret key, choose one of them

# Official source
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# University of Science and Technology
$ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# Tsinghuayuan
$ curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# Check if the key is installed successfully
$ sudo apt-key fingerprint 0EBFCD88

4. Add the software source for installing docker. If you think the official source is slow, you can choose the source of the University of Science and Technology and the source of Tsinghua

I did not set the source before, which caused the installation to fail. Here you can choose the source of Zhongke University or Tsinghua source

# University of Science and Technology
$ sudo add-apt-repository \   
" deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu \   
$(lsb_release -cs) \   stable"     
# Tsinghuayuan$ sudo add-apt-repository \  
" deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \  
$(lsb_release -cs) \  stable"

5. Install docker-ce

sudo apt install docker-ce

At this point, the installation is complete.

For more high-quality content, please pay attention to [Youth Coder]

Recommended Posts

ubuntu18.04 install docker
docker install ubuntu
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install Docker on Ubuntu18
Docker practice (1): install Docker on Ubuntu 16.04
Install Docker on Ubuntu 18.04 offline
ubuntu18.04 install python2
CentOS 7 install Docker
CentOS7 install Docker
ubuntu12.04 install python3
Ubuntu install guide
ubuntu install nodejs
Install and configure Docker in Ubuntu
Docker ubuntu: install python-PIL-image environment on 14.04
ubuntu 16 install asp.net
ubuntu install leanote
ubuntu install Jenkins
Centos7 install Docker
ubuntu install elasticsearch
Centos7 install docker18
centos7 install docker
ubuntu16.0.1 install pagoda
CentOS 6 install Docker
Centos8 install Docker
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
Ubuntu uses Docker to install Gitlab
Install docker on ubuntu and basic usage
Linux install Docker and run Ubuntu system
Install Docker on Centos7
install vscode on ubuntu18
Install node.js under Ubuntu
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
CentOS 7 install Docker service
Ubuntu18.04 install opencv 3.2.0 solution
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install nodejs10 on Ubuntu16
ubuntu install harbor warehouse
Install mysql on Ubuntu 14.04
Ubuntu16.04 install Mongodb tutorial
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
2018-09-11 Install arduino under Ubuntu
Install Python3 on Ubuntu 14.04
Ubuntu18.04 install Asterisk16.10 + FreePBX15.0
Ubuntu19 install MySQL pit
ubuntu16.04 install node.js, npm
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
CentOS 8-dnf install docker
pcduino ubuntu install os