---
title: "Install using Docker"
description: "This tutorial takes you through the steps needed to run the Curity Identity Server in Docker"
url: "https://curity.io/resources/learn/run-curity-docker/"
date: "2019-08-29"
area: "tutorials"
topic: "getting-started"
pagegroup: "setup"
---

# Install using Docker

This tutorial shows how to use the official Docker image of the Curity Identity Server to run the server locally, using Docker.

![null - YouTube thumbnail](https://i.ytimg.com/vi_webp/1iEITTtoS7A/hqdefault.webp)

Curity Identity Server Docker Images

Refer to the [Curity Identity Server Docker Images](https://developer.curity.io/docker) page for supported images and tags.

## Pull the Image

Make sure a local Docker image is installed and then use the following command to pull the latest Curity Identity Server image from the Azure Container Registry:

```bash
docker pull curity.azurecr.io/curity/idsvr
```

## Run the Container

-   Set the admin user password in an environment variable and start the server.
-   The port 6749 is the default port for the admin UI. Expose it in the `docker run` command to access it.
-   The port 8443 is also exposed in this example to prepare for the [First Configuration](https://curity.io/resources/learn/first-config/).

```bash
ADMIN_PASSWORD=Password1
docker run -it -e PASSWORD=$ADMIN_PASSWORD -p 6749:6749 -p 8443:8443 curity.azurecr.io/curity/idsvr
```

You can also run in detached mode by passing `-d` in the `docker run` command. If you set the `PASSWORD` environment variable, the unattended installer will run in the container when it starts for the first time. Once the server is up, you can access the Admin UI by visiting `https://localhost:6749/admin`.

## Next Steps

Now the Curity Identity Server is up and running but without any configuration. The next step is to set up the basic profiles and services. Move on to [the First Configuration Tutorial](https://curity.io/resources/learn/first-config/).

A more advanced example

Refer to the [docker-compose tutorial](https://curity.io/resources/learn/clustering-using-docker-compose/) if you need a more advanced tutorial using Docker to set up a whole cluster.
