Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker image accelerator

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to use Docker Accelerator for users with Docker client version greater than 1.10

When you download and install a Docker Version of no less than 1.10, it is recommended to configure it directly through daemon config.

Use the configuration file / etc/docker/daemon.json (create a new file if not available)

{

"insecure-registries": ["192.168.10.7 666"]

"registry-mirrors": ["https://9yhxvwku.mirror.aliyuncs.com"]"

"live-restore": true

}

Parameter description:

Insecure-registries private warehouse address

The acceleration address of registry-mirrors image, that is, the third-party repository, can also be changed to your own repository address http://192.168.10.7:666, so that you do not need to add the address and port of the private repository for docker pull.

Live-restore enables real-time restore

By default, when the Docker daemon terminates, it closes the running container. Starting with Docker Engine 1.12, you can configure the daemon so that the container is still running when the daemon is not available. This feature is called real-time restore. The real-time restore option helps reduce container downtime due to daemon crashes, planned downtime or upgrades.

Add the configuration to the daemon configuration file. On Linux, the default is / etc/docker/daemon.json

Reload the Docker daemon

Systemctl reload docker

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report