---
title: "Publish"
slug: "publish-a-docker-image"
updated: 2025-06-27T03:04:02Z
published: 2025-06-27T03:04:02Z
canonical: "docs.akridata.ai/publish-a-docker-image"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akridata.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish a docker image

A docker image is published to a registry using **'docker push'** command.

A docker registry must be created before you can publish images. Data Explorer currently supports [DockerHub](https://hub.docker.com/), and [AWS ECR](https://aws.amazon.com/ecr/) hosted registries. Please refer to the corresponding registry provider documentation on the steps to create a docker registry. After creating a docker registry, the same must be registered under the [Docker Registries](/data-explorer/docs/docker-repositories) page on Data Explorer UI.

Typical commands to push the docker image to the registry are listed below. Please refer to your registry provider documentation for additional details.

## DockerHub

1. Set credentials using the docker login command.ShellShell 

```shell
docker login --username <username> --password <password>
```
2. Push the docker image to the registry.ShellShell 

```shell
docker push repo/img:latest
```
3. For the above example, the docker image is expected to have been tagged with repo/img:latest during the 'docker build' or later using the 'docker tag' command.

## AWS ECR

1. Set credentials using the docker login command. The 'aws' command line and necessary permissions to perform get-login-password must have been setup before executing this command.ShellShell 

```shell
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin <account>.dkr.ecr.us-east-1.amazonaws.com
```
2. Push the docker image to the registry.ShellShell 

```shell
docker push <account>.dkr.ecr.us-east-1.amazonaws.com/repo/img:latest
```
3. For the above example, the docker image is expected to have been tagged with *<**account>.dkr.ecr.us-east-1.amazonaws.com/repo/img:latest* during the **'docker build'** or later using the **'docker tag'** command.
