Docker installation notes under Ubuntu

operating system requirements

To install Docker Engine, you need a 64-bit version of one of the following Ubuntu distributions:

Ubuntu Groovy 20.10, Ubuntu Focal 20.04 (LTS), Ubuntu Bionic 18.04 (LTS), Ubuntu Xenial 16.04 (LTS)
Docker Engine supported architectures: x86_64 (or amd64), armhf, and arm64.
Use the following command to check whether your system version meets the requirements:

lsb_release -a

insert image description here
Check the kernel version command

cat /proc/version
Linux version 4.15.0-132-generic (buildd@lgw01-amd64-034) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)) #136~16.04.1-Ubuntu SMP Tue Jan 12 18:22:20 UTC 2021

Install the docker process using the installation package

  1. Download the installation package from the docker official website: https://download.docker.com/linux/ubuntu/dists/ Select your Ubuntu version, then browse pool/stable/
    For example, according to my system <ubuntu, xenial, amd64> I The final download address is https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/Download
    containerd.io, docker-ce-cli, docker-ce three installation packages:
containerd.io_1.4.3-1_amd64.deb  
docker-ce-cli_20.10.1~3-0~ubuntu-xenial_amd64.deb 
docker-ce_20.10.1~3-0~ubuntu-xenial_amd64.deb
  1. Installation (note that the installation order cannot be changed)
sudo dpkg -i containerd.io_1.4.3-1_amd64.deb  
sudo dpkg -i docker-ce-cli_20.10.1~3-0~ubuntu-xenial_amd64.deb 
sudo dpkg -i docker-ce_20.10.1~3-0~ubuntu-xenial_amd64.deb
  1. Verify that the installation was successfuldocker run hello-world
    insert image description here

Reference: docker official documentation
If there is an Unable to find image 'hello-world:latest' locally problem solution during installation: solution

Guess you like

Origin blog.csdn.net/TommyXu8023/article/details/113193414