Common CLI Command Operations
The Alauda Container Platform provides command line tools for users to interact with the Alauda Container Platform Registry. The following are some examples of common operations and commands:
Let's assume that Alauda Container Platform Registry for the cluster has a service address of registry.cluster.local and the namespace you are currently working on is my-ns.
Contact technical services to acquire the kubectl-acp plugin and ensure it is properly installed in your environment.
TOC
Logging in Registry
Log in to the cluster's Registry by logging in to the ACP.
Add namespace permissions for users
Add namespace pull permission for a user.
Add namespace push permissions to a user.
Add namespace permissions for a service account
Add namespace pull permission for a service account.
Add namespace push permission for a service account.
Pulling Images
Pulls an image from the registry to inside the cluster (e.g., for Pod deployment).
This command verifies your identity and pull permissions in the target namespace, and then pulls the image from the Registry.
Pushing Images
Pushes locally built images or images pulled from elsewhere to a specific namespace in the registry.
You need to first tag (tag) the local image with the address and namespace format of the target Registry using a standard container command line tool such as podman.
Pushes an image from a remote image repository to a specific namespace in the Alauda Container Platform Registry.
This command verifies your identity and push permissions within the my-ns namespace, and then uploads the locally tagged image to Registry.