Interconnecting with an Image Repository
To use a third-party image repository, you need to import the root certificate of the image repository and then configure the image download information to complete the interconnection. When configuring a third-party image repository, you need to use the account and password provided by the third-party image repository. And you are responsible for the security of the account and password.
- Import the root certificate of the image repository.Before using a third-party image repository, you need to import the image repository certificate.
https://{ip}:{port}/certmanager/v1/certificates/importFor details about the API, see Importing the Root Certificate.
- Import the image repository configuration.The address, account, and password of the third-party image repository must be configured. The repository server address can be a domain name or an IP address. When this API is called repeatedly, the existing image download information configuration will be updated.
https://{ip}:{port}/edgemanager/v1/image/configFor details about the API, see Configuring Image Download Information.
- Optional: Configure the mapping between the IP address and domain name.
If a domain name is used when the image repository is invoked, you need to configure the mapping between the domain name and IP address in the host directory /etc/hosts of MEF Edge on an edge device. For details, see Configuring Local Domain Name Mapping.
./run.sh domainconfig -domain=xxx -ip=xxx