How to install Docker and configure Alibaba Cloud Image Accelerator

How to install Docker and configure Alibaba Cloud Image Accelerator

Docker Installation

There is no need to talk about the installation on Windows system, because Docker is open source, so just go to the official website: https://www.docker.com/ to download the installation package and install it.

In fact, the Linux system installation is also very simple. Just write down the commands given on the official website and the installation will be successful. Then start the service and you can use it. For example, my system is CentOS7, and its installation is as follows:

First, go to the official website of CentOS to install Docker: https://docs.docker.com/engine/install/centos/

I have never installed other versions of Docker, so I don’t need to uninstall the old version of Docker. I can just copy and paste the command to install it according to the first installation method he gave.

Install the yum-utils package, which provides the yum-config-manager program, and creates a stable docker repository

Start the docker repository

Enable the test channel

Disable docker repository

Install the latest version of Docker

Then, start the Docker service

View the Docker installation version command: docker version

At this point, the latest version of Docker has been installed and started successfully

Docker configuration Alibaba Cloud Accelerator image

Because the docker repository: https://hub.docker.com/ is a foreign site, access is very slow, so you can use Alibaba Cloud's mirror repository

Prerequisite: Register an Alibaba Cloud developer account

Go to Alibaba Cloud Container Mirroring Service, click Image Accelerator, and you will get your own image accelerator address. Then, configure it according to your system and follow the operation documentation.

You can execute: cat /etc/docker/daemon.json to check, as shown below, of course, the image address is your own

Of course, if you are really worried, you can use the docker info command to check whether the image repository is an Alibaba Cloud image. This means that there is definitely no problem.

Run the hello-world image

Since I have run it once, I will run it directly this time. The first time I run it, it will prompt that the image cannot be found locally. Then I will go to Alibaba Cloud to download the image and run it again.

Summarize

This is the end of this article about Docker installation and Alibaba Cloud Image Accelerator configuration method. For more related Docker Alibaba Cloud Image Accelerator content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Installation steps of docker-ce on Raspberry Pi 4b ubuntu19 server
  • How to install Docker on Raspberry Pi
  • How to view files in Docker image
  • How to use Docker buildx to build multi-platform images and push them to private repositories
  • Use the docker build kit to build a Docker image that can be used on the Raspberry Pi

<<:  JavaScript implements changing the color of a web page through a slider

>>:  How to implement encryption and decryption of sensitive data in MySQL database

Recommend

Summary of common functions and usage methods of WeChat applet development

Here, I have mainly sorted out some commonly used...

Implementation of Nginx filtering access logs of static resource files

Messy log Nginx in daily use is mostly used as bo...

MySQL 8.0.17 installation and configuration method graphic tutorial

This article shares the installation and configur...

Solve the problem that Docker cannot ping the host machine under Mac

Solution Abandon the Linux virtual machine that c...

Mysql sets boolean type operations

Mysql sets boolean type 1. Tinyint type We create...

Detailed explanation of the usage and differences of MySQL views and indexes

MySQL Views Simply put, a MySQL view is a shortcu...

Detailed explanation of how to view MySQL memory usage

Preface This article mainly introduces the releva...

How does Vue track data changes?

Table of contents background example Misconceptio...

How to use explain to query SQL execution plan in MySql

The explain command is the primary way to see how...

Implementation of mysql8.0.11 data directory migration

The default storage directory of mysql is /var/li...

HTML+CSS to achieve surround reflection loading effect

This article mainly introduces the implementation...

MySQL index for beginners

Preface Since the most important data structure i...

How to implement rounded corners with CSS3 using JS

I found an example when I was looking for a way t...

Steps to package and deploy the Vue project to the Apache server

In the development environment, the vue project i...