Prise en main

Welcome to the DowntoZero Cloud OCI-compliant container registry! This guide will help you get started with pushing and pulling container images using our registry.

Prérequis

Before you begin, ensure you have the following:

Étape 1 : Créer un compte

If you don’t have an account yet, follow these steps:

  1. Visit DowntoZero Cloud
  2. Click on Sign Up
  3. Fill in the required information

Étape 2 : Générez une clé API

To securely interact with the registry, you’ll need to generate an API key:

  1. Connectez-vous à votre DowntoZero Cloud
  2. Accédez au Service d’identité
  3. Cliquez sur New pour créer une nouvelle authentification
  4. Donnez un nom au jeton (par ex., “Docker Registry Access”)
  5. Attribuez les autorisations appropriées au jeton
  6. Cliquez sur Create Token
  7. Copiez le jeton généré et stockez-le en lieu sûr (vous ne pourrez plus le voir)

Étape 3 : Se connecter au registre

Use your API Key to log in to the registry:

echo "<your-api-key>" | docker login cr.dtz.rocks -u apikey --password-stdin

Étape 4 : Étiquetez votre image

Tag your local Docker image to match the registry format:

docker tag <local-image> cr.dtz.rocks/<image-name>:<tag>
  • : le nom de votre image locale
  • : nom souhaité de l’image dans le registre
  • : tag de l’image (optionnel, par défaut latest)

Example:

docker tag my-app cr.dtz.rocks/my-app:latest

Étape 5 : Poussez l’image

Push the tagged image to the registry:

docker push cr.dtz.rocks/<image-name>:<tag>

Example:

docker push cr.dtz.rocks/my-app:latest

Étape 6 : Récupérez l’image

You or others can now pull the image from the registry:

docker pull cr.dtz.rocks/<image-name>:<tag>

Example:

docker pull cr.dtz.rocks/my-app:latest