Container Registry

Introduction

Container Registry is a service for storing private container images. It provides a subset of features provided by Artifact Registry, a universal repository manager and the recommended service for managing container images and other artifacts .

Artifact

A service for storing and managing artifacts in private repositories, including container images, and Helm charts.

Artifact Registry extends the capabilities of Container Registry. In addition to supporting multiple artifact formats, the service provides additional benefits such as:

Ability to create multiple discrete repositories in the same region.

Working with your images

Many people use Docker Hub as a central registry for storing public Docker images, but to control access to your images you need to use a private registry such as Container Registry.

You can access the registry through secure HTTPS endpoints, which allow you to push, pull, and manage images from any system.

Getting Started

How to Launch Container Registry from Myaccount portal

../_images/container_registry1.png

Login into MyAccount

Please go to ‘My Account’ and log in using your credentials set up at the time of creating and activating the E2E Networks ‘My Account’.

Working with Container Registry

The following sections describe how you can use Container Registry .

Create New Container Registry

  • Click on the “Container Registry” sub-menu available under the Storage section.

  • You will be directed to the ‘Container Registry manager’ page.

  • You can provide the project name(optional).

  • Click on the “Create Container Registry ” button.

../_images/container_registry3.png

Scan Project

Click on the scan Project button to scan your Project.

../_images/CRegistry1.png

Reset Password

Click on the Reset Password button to Change the password of your Project.

../_images/CRegistry2.png ../_images/CRegistry3.png

Delete Project

Click on the Delete Password button to Delete your Project

../_images/CRegistry4.png ../_images/CRegistry5.png

Connecting to your Container Registry

Enter the following command at a command prompt on your local or client desktop to connect to a container Registry.

docker login registry.e2enetworks.net -u <user_name> -p <password>
../_images/login_images.png

Push Command

Using Docker

Enter the following command to push your image on the project.

Push Command -

docker push registry.e2enetworks.net/<project_name>/<image_name>
../_images/push_command.png

Docker Images –

sudo docker images
docker tag <image> registry.e2enetworks.net/<project_name>/<image>
../_images/docker_images.png ../_images/tag_images_command.png

Push Imagess

docker push registry.e2enetworks.net/<project_name>/<image_name>
../_images/push_image_command.png

Scan Repositories

For scan repositories you have to click on the scan button to scan your Repositories.

../_images/CRegistry6.png

Delete Repositories

For deleting the repositories you have to click on the Delete button. And confirmation popup will be open and you need to confirm that click on Delete button.

../_images/CRegistry7.png ../_images/CRegistry8.png

Scan Artifact

For scanning the Artifact click on scan button of artifact.

../_images/CRegistry9.png

Delete Artifact

Click on the Delete button to Delete your Artifact. And confirmation popup will be open and you need to confirm that click on Delete button.

../_images/CRegistry10.png ../_images/CRegistry11.png

Create a Secret For Container Registry

Secrets

A Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Such information might otherwise be put in a Pod specification or in a container image. Using a Secret means that you don’t need to include confidential data in your application code.

Create Secrets

kubectl create secret docker-registry name-secrets \
--docker-username=username \
--docker-password=pass1234 \
--docker-server=registry.e2enetworks.net

Create a Pod that Uses your Secret

cat > private-reg-pod-example.yaml << EOF
apiVersion: v1
kind: Pod
metadata:
  name: node-hello
spec:
  containers:
  - name: node-hello-container
    image: registry.e2enetworks.net/vipin-repo/node-hello@sha256:bd333665069e66b11dbb76444ac114a1e0a65ace459684a5616c0429aa4bf519
  imagePullSecrets:
  - name:  name-secrets
EOF

Simplifying Pull Operations with User-Friendly Interface

Source Registries

Source registries assist users in defining the Source from which they wish to draw their specific resources. Customers must click New Registry Endpoint for Source Registries. You must then enter the necessary information. After that, you must press the “Submit” button.

../_images/cr1.png ../_images/cr2.png ../_images/cr3.png

After Adding Source Registries it will be shown in the list.

../_images/cr4.png

Source Registries Action

You can perform two actions on Source Registries Edit, and Delete.

Edit :- For Editing Source Registries you have to click on Edit button and set the value as per you choice.

../_images/cr5.png ../_images/cr6.png

Delete :- For Deleting replication Rule you have to click on Delete button.

../_images/cr7.png ../_images/cr8.png

Replication Rule

Replication Rules allow you to specify how you wish to replicate your resources from a certain source registry. The New Replication Rules button must be clicked by the customer to create a replication rule. Next, you must enter the required data. Afterward, you must click the “submit” button.

../_images/cr9.png ../_images/cr10.png ../_images/cr11.png

Replication Rule Action

You can perform three actions on Replication Rule Execute, Edit, and Delete.

Execute :- For executing Replication Rule you have to simply click on Execute button the execution will be start as per Replication rule which you have set.

../_images/cr12.png ../_images/cr13.png

Edit :- For Editing the Replication Rule you have to click on Edit button and set the value as per you choice.

../_images/cr14.png ../_images/cr15.png

Delete :- For Deleting replication Rule you have to click on Delete button.

../_images/cr16.png ../_images/cr17.png