Obtaining a Long-Term Valid containerd Pull/Push Command¶
Scenario¶
This section describes how to obtain a containerd pull/push command that is permanently valid.
Note
For security purposes, you are advised to obtain the commands in a development environment.
Ensure that you have permission to access the IAM service.
Procedure¶
Obtain the programmatic access permission by referring to 1.
Obtain the resource space name, image repository address, AK, and login key by referring to 2 to 4.
Concatenate the obtained information to form a long-term valid containerd command.
Image pull command
ctr image pull --user [Resource space name] @[AK]: [Login key] [Image repository address]
In the command, the resource space name and image repository address are obtained in 2, the AK in 3, and the login key in 4.
Image push command
ctr image push --user [Resource space name] @[AK]: [Login key] [Image repository address]
In the command, the resource space name and image repository address are obtained in 2, the AK in 3, and the login key in 4.
Note
The login key is encrypted and cannot be decrypted into an SK.
The commands can be executed on other containerd clients to pull and push images.