Install Docker
Li Wei
Installation of Docker
Download and Install
This installation guide follows the official Docker documentation, available here:
The most comprehensive Ubuntu Docker installation tutorial, with a practical resource pack at the end! ubuntu docker安装-CSDN博客
1. Remove old versions
If an older Docker version is already installed on the system, uninstall it first:
2. Configure Docker’s yum repository
First, install a yum utility.
After successful installation, run the command to set up Docker’s yum source:
3. Install Docker
Finally, execute the command to install Docker:
4. Start and verify
5. Configure image acceleration
Below is an example using Alibaba Cloud’s image acceleration service.
5.1. Register an Alibaba Cloud account
Visit the Alibaba Cloud website and create an account.
5.2. Enable the image service
On the homepage, locate Container Image Service under Products:
Click to enter the console:
The first time you may need to select “Activate now” before entering the console.
5.3. Configure image acceleration
Find Image Tools → Image Accelerator:
Scroll down the page to locate the configuration documentation:
The specific command is as follows:
Originally written by Li Wei (李唯_) and published in Chinese on 后端技术栈全书 (Full-Stack Backend Engineering). Translated and adapted for DriftSeas with permission.