---
title: "Push a Docker image to Container Registry"
sidebar_label: "Push a Docker image"
sidebar_position: 2
description: "How to push a Docker image to the registry"
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# Push a Docker image to Container Registry

1. [Create a registry](/craas/registry/create-registry.mdx).

2. [Get a token](/craas/tokens/generate-token.mdx).

3. [Log in to the registry](/craas/images/use-docker.mdx).

4. Assign a tag to the image:

   ```bash
   docker tag <image> cr.selcloud.ru/<registry>/<image>:<tag>
   ```

   Specify:

   * `<image>` — image name that does not exceed 20 UTF-8 characters. You can view it using the `docker image list`;
   * `<registry>` — the name of the registry where you want to push the image;
   * `<tag>` — the tag.

5. Push the image into the registry:

   ```bash
   docker push cr.selcloud.ru/<registry>/<image>:<tag>
   ```

<Formbricks />
