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:
- Docker installé sur votre machine. Télécharger Docker
- Un compte actif sur DowntoZero Cloud
- Activez le service de registre de conteneurs
- Générez une clé API pour l’authentification au registre - Obtenir une clé API
Étape 1 : Créer un compte
If you don’t have an account yet, follow these steps:
- Visit DowntoZero Cloud
- Click on Sign Up
- 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:
- Connectez-vous à votre DowntoZero Cloud
- Accédez au Service d’identité
- Cliquez sur New pour créer une nouvelle authentification
- Donnez un nom au jeton (par ex., “Docker Registry Access”)
- Attribuez les autorisations appropriées au jeton
- Cliquez sur Create Token
- 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