# Automate Docker Registry Creation with Harness and Terraform

DevFeed: [Automate Docker Registry Creation with Harness and Terraform](<https://devfeed.tech/articles/automate-docker-registry-creation-with-harness-and-terraform-31421.md>)

Original publisher: [Read original article](<https://www.harness.io/blog/how-to-automate-docker-registry-creation-with-harness-pipelines-and-terraform>)

Author: Shibam Dhar

Published: 2026-09-16T00:00:00Z

Content type: tutorial

Language: en

Sources: [Harness Blog](<https://devfeed.tech/sources/harness-blog.md>)

Topics: [docker registry](<https://devfeed.tech/topics/docker-registry.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [Infrastructure as code](<https://devfeed.tech/topics/infrastructure-as-code.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>)

Tags: [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [container-image](<https://devfeed.tech/tags/container-image.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [docker-registry](<https://devfeed.tech/tags/docker-registry.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [registry](<https://devfeed.tech/tags/registry.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

A tutorial shows how to use Harness Pipelines and the Harness Terraform Provider to provision a uniquely named Docker Registry, build and push a container image, and deploy it to Kubernetes. It covers Terraform execution in a CI step, passing output variables between stages, and rolling updates with automatic rollback.

## Source excerpt

Provision a fresh Docker Registry with Terraform, build your container image into it, and deploy to Kubernetes in one | Blog