Get the App
SLTechnology News&Howtos  ›  Servers  › 

Acceleration method of downloading Image and Mirror Source in docker

Shulou Source: shulou.com Published: 2022-06-01 11:32:10 09月25日 Update

This article focuses on "docker download image and image source acceleration methods", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "docker download image and mirror source acceleration method"!

1. Introduction

Before we talk about mirroring, let's talk about containers. In fact, containers are processes running on images. Docker containers are processes. For example, images are templates and exist on disk, while containers are instances generated by templates. Images are classes, objects are containers, and objects are generated by classes.

To view the mirror on the system first, you can use the docker images command.

You'll find it's empty.

Because there is no mirror image.

Let's make a hello world.

To download the image first, use the docker pull command, such as:

$docker pull hello-world

You may find that there is no response for a long time, let alone download it, because the place where the image is placed is abroad, anyway, it is a bit slow to visit at home, so you need to use an accelerator.

two。 Accelerator

Someone has already synchronized those images and put them on the domestic server, so we can download them much faster.

This is the accelerator.

There are many accelerators in China, and we use Aliyun's accelerator.

Https://cr.console.aliyun.com/#/imageList

Post the following content on the terminal:

Sudo mkdir-p / etc/dockersudo tee / etc/docker/daemon.json

Tags: Mirrors accelerators containers methods that is content commands objects templates processes learning generation running practical deeper interests places instances practicality reality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Shulou Tech Info macOS MySQL