Updated on 2024-10-26 GMT+08:00

Docker Substitute Image Repository

You can configure one or more image repositories to replace the default Docker Hub repository to provide better speed and reliability when pulling images, particularly when the network or Docker Hub access is slow.

Value Range

Up to 10 image repositories can be configured.

Default Value

SWR image repositories are configured as substitute repositories by default.

Modifiable

Yes

Scope

Nodes that use Docker in CCE standard and CCE Turbo clusters

Configuration Description

Enter an IP address or domain name starting with http:// or https:// for a substitute image repository.

For example, if you use the on-premises image repositories with IP addresses http://example.com and https://example.com, respectively, as the substitute repositories of the default repository, the parameter value is ["http://example.com,https://example.com"].

Suggestions

  • To pull images faster, use an on-premises image repository as a substitute.
  • To improve fault tolerance and availability, configure multiple substitute image repositories.

If a substitute image repository is configured incorrectly, containers may not be able to pull the necessary image.