Solution to Docker image downloading too slowly

Solution to Docker image downloading too slowly

Docker image download is stuck or too slow

I searched for many methods online, and the download also got stuck when using a China mirror.
The last one was successful and the download speed was satisfactory

1. Register an account on Alibaba Cloud first

There is no need to bind anything, just register directly. If you have an account, just log in directly.
Address: https://cr.console.aliyun.com Click to search for container image service


insert image description here

2. Create a mirror repository

insert image description here

3. After creating it, click on this tab


insert image description here

Type in the terminal

vim /etc/docker/daemon.json

Copy "registry-mirrors": ["https://......com"] (corresponding to your own acceleration address) into the file. This is my format.


insert image description here

Finally, reload the file and restart Docker (don’t forget these two steps)

sudo systemctl daemon-reload //Reload sudo systemctl restart docker //Restart

Finally, you can download the image happily.

docker install mysql (still the same command, no modification is required)

This is the end of this article about the solution to the problem of docker downloading images too slowly. For more related content about docker downloading images too slowly, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Delete the image operation of none in docker images
  • Solve the problem of docker images disappearing
  • How to operate Docker and images
  • Docker image import and export code examples
  • Analysis of the Docker image construction principle (you can build an image without installing Docker)
  • Use scripts to package and upload Docker images with one click
  • Use the docker build kit to build a Docker image that can be used on the Raspberry Pi
  • Steps to completely uninstall the docker image

<<:  JavaScript imitates Jingdong magnifying glass effect

>>:  Getting Started: A brief introduction to HTML's basic tags and attributes

Recommend

HTML css js implements Tab page sample code

Copy code The code is as follows: <html xmlns=...

Key features of InnoDB - insert cache, write twice, adaptive hash index details

The key features of the InnoDB storage engine inc...

How to insert video into HTML and make it compatible with all browsers

There are two most commonly used methods to insert...

HTML Tutorial: Collection of commonly used HTML tags (5)

These introduced HTML tags do not necessarily ful...

How to make vue long list load quickly

Table of contents background Main content 1. Comp...

Detailed explanation of gcc command usage under Linux system

Table of contents 1. Preprocessing 2. Compilation...

Design Theory: Ten Tips for Content Presentation

<br /> Focusing on the three aspects of text...

Design a data collector with vue

Table of contents Scenario Core Issues Status mon...

Pure CSS3 mind map style example

Mind Map He probably looks like this: Most of the...

Vue achieves the top effect through v-show

html <div class="totop" v-show="...

The process of installing SVN on Ubuntu 16.04.5LTS

This article briefly introduces the process of se...

HTML iframe usage summary collection

Detailed Analysis of Iframe Usage <iframe frame...