Objective
You have a working Docker project and the source code is managed in a Git repository. The goal of this tutorial is to push a Docker image to the Azure container registry. This process will include:- Cloning the application from a Git repository
- Building the Docker image
- Pushing the Docker image to the Azure container registry
Checklist
Checklist | Description |
|---|---|
Docker Registry Address | Target Azure Container Registry URL |
Docker Registry User | Azure Client ID to push/pull images against Azure Container Registry |
Docker Registry Token/Password | Password for the above Azure Client ID |
Docker Registry User permission | The Client ID must have relevant access to push/pull images from Azure Container Registry |
Configure Cloud-Specific Credential
To configure credential details according to the cloud provider, please refer to this document: Docker Registry Setup For Cloud ProvidersConfigure Container Account
FlexDeploy will connect to the Azure container registry using the container account details provided.- Navigate to Integrations
- Open the Containers tab
-
Create a new Containers account by pressing the Create button. Create a new Docker Registry account of provider type DockerRegistry

Git Repository Structure
The Git repository should be a Docker-based application. The Docker File should be present in the application to build the image. A sample Git repository structure is given below:
Build Workflow
Navigate to Workflows and create a workflow using the :Create_Button: button as highlighted below.








Project Configuration
Navigate to Projects and create a blank, standard Project with a logical name (PushDockerImageToAzureContainerRegistry in this case).

Source Control
Configure the SCM repository on the Source Control tab as shown below.
- Select the Sources section for configuring your source repository
- Select the appropriate Source Control Type
- Configure source repository details. For more detailed steps of source control configuration, please refer to Configure Source Control in FlexDeploy
Project Properties
To configure Project-specific properties, navigate to Configuration → Properties as shown below.
- Select the target Registry Account.
- Docker Image Name and Docker Image Tag are essential to build the Docker image.
Target Properties
Topology
Navigate to Topology. Choose a Target Group on the left, or create a new one. You will see a list of Environments on the right with colored circles representing each Target.
- RED - The Endpoint is not configured
- YELLOW - some of the required properties are not set,
- GREEN - all required properties are set and the Endpoint is configured


Property | Mandatory | Description |
Docker Server | Optional | Docker server address. Required if Docker Unix Socket is not set. |
Docker Server Port | Optional | The port to connect to on the Docker server. |
Docker Unix Socket | Optional | The socket the Docker daemon listens on The default value is [/var/run/docker.sock] |
Registry Account | Optional | Docker Registry account with relevant details |
GIT Path | Optional | Path to the Git executable. Required only if git is not on PATH. |