Help Center/ Software Repository for Container/ User Guide (Ankara Region)/ Image Management/ Obtaining a Long-Term Valid containerd Pull/Push Command
Updated on 2024-12-02 GMT+08:00

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.

  • 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

  1. Obtain the programmatic access permission by referring to Step 1.
  2. Obtain the resource space name, image repository address, AK, and login key by referring to Step 2 to Step 4.
  3. Concatenate the obtained information to form a long-term valid containerd command.

    1. 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 Step 2, the AK in Step 3, and the login key in Step 4.

    2. 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 Step 2, the AK in Step 3, and the login key in Step 4.

    • 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.