---
title: Run Kestra with Docker – Single-Container Setup
description: Run Kestra in a single Docker container for quick testing and development, with options for custom configuration.
url: https://kestra.io/docs/installation/docker
---

# Get Started with Kestra Using a Single Docker Container

Start Kestra using a single Docker container.

<div class="video-container">
  <iframe src="https://www.youtube.com/embed/kSGf8FZf7-Q?si=iMfRzj-6XB8GpRx1" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>

## Install Kestra with a single Docker Container

Once you have Docker running, you can start Kestra in a single command (*if you're running on Windows, make sure to use [WSL](https://docs.docker.com/desktop/wsl/)*):

```bash
docker run --pull=always --rm -it -p 8080:8080 --user=root \
  --name kestra \
  -v kestra_data:/app/storage \
  -v kestra_db:/app/data \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp:/tmp \
  kestra/kestra:latest-slim server local
```

Open http://localhost:8080 in your browser to launch the UI and start building your first flows.

:::alert{type="info"}
The `kestra/kestra:latest-slim` image ships without any plugins to keep the download small. Plugin auto-install is on by default for `server local`, so Kestra installs any plugin automatically the first time a flow needs it — no need to pre-install anything. If you prefer an image with all plugins bundled, use `kestra/kestra:latest` instead.
:::

:::alert{type="info"}
The above command starts Kestra with an embedded H2 database. Storage files are stored on the `kestra_data` Docker volume, and the H2 database is persisted on the `kestra_db` Docker volume. For production-ready persistence with a PostgreSQL database and more configurability, follow the [Docker Compose installation](https://kestra.io/docs/installation/docker-compose).
:::

:::alert{type="info"}
**Enterprise Edition images** — log in to the private registry with your license credentials before pulling images:

```bash
docker login registry.kestra.io --username $LICENSEID --password $FINGERPRINT
```

Use `registry.kestra.io/docker/kestra-ee:latest` for the newest image, or pin a specific version such as `registry.kestra.io/docker/kestra-ee:v1.0`. Review the [Enterprise documentation](https://kestra.io/docs/enterprise) and [configuration requirements](https://kestra.io/docs/enterprise/instance) for additional setup guidance.
Compare editions in [Open Source vs Enterprise](https://kestra.io/docs/oss-vs-paid) if you are deciding between versions.
:::

## Configuration

### Using a configuration file

You can adjust Kestra's configuration using a file mounted to the Docker container as a bind volume.

First, create a configuration `.yml` file like the example below:

```yaml
datasources:
  postgres:
    url: jdbc:postgresql://postgres:5432/kestra
    driver-class-name: org.postgresql.Driver
    username: kestra
    password: k3str4
kestra:
  server:
    basic-auth:
      enabled: false
      username: "admin@kestra.io" # It must be a valid email address
      password: Admin1234! # it must be at least 8 characters long with uppercase letter and a number
  repository:
    type: postgres
  storage:
    type: local
    local:
      base-path: "/app/storage"
  queue:
    type: postgres
  tasks:
    tmp-dir:
      path: "/tmp/kestra-wd/tmp"
  url: "http://localhost:8080/"
```

:::alert{type="info"}
This configuration is taken from the official [docker-compose.yaml](https://github.com/kestra-io/kestra/blob/develop/docker-compose.yml#L33) file and uses a PostgreSQL database; you may want to retrieve it there to be sure it is accurate.
:::

After creating the configuration file, update the command to mount the file to the container and start Kestra. We also adjust the Kestra command to start a standalone version, as we now have a PostgreSQL database as a backend.

```bash
docker run --pull=always --rm -it -p 8080:8080 --user=root \
 -v $PWD/application.yaml:/etc/config/application.yaml \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -v /tmp:/tmp kestra/kestra:latest server standalone --config /etc/config/application.yaml
```

### Using the `KESTRA_CONFIGURATION` environment variable

You can adjust the [Kestra configuration](https://kestra.io/docs/configuration/configuration-basics) by passing the `KESTRA_CONFIGURATION` variable to the Docker container via the `-e` option.
This environment variable must be a valid YAML string.

Managing a large configuration via a single YAML string can be tedious. To simplify this, consider using a configuration file instead.

First, define an environment variable:

```bash
export KESTRA_CONFIGURATION=$'
datasources:
  postgres:
    url: jdbc:postgresql://postgres:5432/kestra
    driver-class-name: org.postgresql.Driver
    username: kestra
    password: k3str4
kestra:
  server:
    basic-auth:
      enabled: false
      username: "admin@kestra.io" # it must be a valid email address
      password: Admin1234! # it must be at least 8 characters long with uppercase letter and a number
  repository:
    type: postgres
  storage:
    type: local
    local:
      base-path: "/app/storage"
  queue:
    type: postgres
  tasks:
    tmp-dir:
      path: /tmp/kestra-wd/tmp
  url: http://localhost:8080/
```

:::alert{type="info"}
This configuration is taken from the official [docker-compose.yaml](https://github.com/kestra-io/kestra/blob/develop/docker-compose.yml#L33) file and uses a PostgreSQL database; you may want to retrieve it there to be sure it is accurate.
:::

Once configured, pass the `KESTRA_CONFIGURATION` environment variable in a Docker command and adjust the Kestra command to run the standalone server:

```bash
docker run --pull=always --rm -it -p 8080:8080 --user=root \
 -e KESTRA_CONFIGURATION="$KESTRA_CONFIGURATION" \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -v /tmp:/tmp kestra/kestra:latest server standalone
```


## Official Docker images

The official Kestra Docker images are available on [DockerHub](https://hub.docker.com/r/kestra/kestra) for both `linux/amd64` and `linux/arm64` platforms.

Two image variants are available:
- `kestra/kestra:*`
- `kestra/kestra:*-slim`

Both variants are based on the [`eclipse-temurin:21-jre`](https://hub.docker.com/_/eclipse-temurin) Docker image.

The `kestra/kestra:*` images include all Kestra [plugins](/plugins) in their **latest versions**. The `kestra/kestra:*-slim` images do not bundle any plugins, which keeps them much smaller to download. When plugin auto-install is enabled (`KESTRA_PLUGINS_AUTO_INSTALL_ENABLED=true` by default on a local server), Kestra downloads and installs any missing plugin automatically the first time a flow uses it — so the `-slim` image stays fully usable.

:::alert{type="info"}
The `*-slim` images were previously published under the `*-no-plugins` suffix. The `-no-plugins` tags are deprecated aliases of `-slim` and will be removed in a future release.
:::

## Docker image tags

The following tags are available for each Docker image (append `-slim` to any image to exclude all but Kestra core plugins):

- `latest`: The most recent stable release (rolling tag). Intended for trying new features; not an LTS. Support ends when the next stable release (~ 2 months) becomes available.
- `latest-lts`: The current Long-Term Support (rolling tag). Tracks the active LTS line (updates roughly every 6 months to the new LTS) and receives fixes for ~1 year.
- `v<X.X>`: Minor-series floating tag (e.g., `v1.0`) that always points to the latest patch of that series (e.g., `v1.0.5`). Use `v<X.X>` when you want automatic patch updates but to stay on a minor line.
- `v<X.X.X>`: Immutable tag for an exact version (e.g., `v1.0.1`). Never changes; **best for locked-down production.**
- `develop`: Nightly/continuous build from the `develop` branch. Unstable and not recommended for production, only for testing.

The **default Kestra image** `kestra/kestra:latest` already includes **all plugins**. To use a lightweight version of Kestra without bundled plugins, add the suffix `-slim`. These images ship without plugins on purpose — they are a fraction of the size of the full image, and combined with plugin auto-install (`KESTRA_PLUGINS_AUTO_INSTALL_ENABLED=true` by default), missing plugins are fetched on demand when a flow needs them.

### Recommended images for production

For production deployments, choose one of the following:

**Latest stable version** for staying most up to date while also stable (make note that this is a rolling tag that changes quite frequently):

- `kestra/kestra:latest` — latest stable with all plugins
- `kestra/kestra:latest-slim` — latest stable without plugins

**Pinned versions** for maximum stability:

- `kestra/kestra:v<X.X.X>` — all plugins included
- `kestra/kestra:v<X.X.X>-slim` — no bundled plugins, only core to Kestra

**LTS rolling tag** if you want automatic updates within the LTS line:

- `kestra/kestra:latest-lts`
- `kestra/kestra:latest-lts-slim`

### Recommended images for development

For development or testing new features:

- `kestra/kestra:latest` — latest stable with all plugins
- `kestra/kestra:latest-slim` — latest stable without plugins
- `kestra/kestra:develop` / `kestra/kestra:develop-slim` — daily builds with unreleased features, unstable

## Build a custom Docker image

If the base or full image doesn't contain package dependencies you need, you can build a custom image by using the Kestra base image and adding the required binaries and dependencies.

### Add custom binaries

The following `Dockerfile` creates a new image from the Kestra base image and adds the `golang` binary along with Python packages:

```dockerfile
ARG IMAGE_TAG=latest
FROM kestra/kestra:$IMAGE_TAG

RUN mkdir -p /app/plugins && \
  apt-get update -y && \
  apt-get install -y --no-install-recommends golang && \
  apt-get install -y pip && \
  pip install pandas==2.0.3 requests==2.31.0 && \
  apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*
```

### Add plugins to a Docker image

By default, the base Docker image `kestra/kestra:latest` contains all plugins (unless you use the `kestra/kestra:latest-slim` version). You can add specific plugins to the base image and build a custom image.

To add selected plugins to the slim image, [install `kestractl`](https://kestra.io/docs/kestra-cli/kestractl#installation), download them with [`kestractl plugins download`](https://kestra.io/docs/kestra-cli/kestractl#plugin-management), and copy them into a custom image:

```bash
kestractl plugins download --compatible-for <version> \
  --plugins io.kestra.plugin:plugin-aws \
  --plugins io.kestra.storage:storage-gcs \
  --plugins io.kestra.plugin:plugin-gcp \
  --plugins-dir ./plugins
```

```dockerfile
FROM kestra/kestra:v<version>-slim

COPY --chown=kestra:kestra plugins/ /app/plugins/
```

Use the same Kestra version in the image tag and in `--compatible-for`. For Enterprise plugins from the Kestra registry, Docker Compose mounts, verification steps, and an alternative that runs `kestra plugins install` inside the image, see [Install Selected Plugins on a Slim Kestra Image](https://kestra.io/docs/how-to-guides/slim-image-plugins).

### Add custom plugins to a Docker image

The above `Dockerfile` installs plugins that have already been published to [Maven Central](https://central.sonatype.com/). If you are developing a custom plugin, make sure to build it following our [plugin developer guide](https://kestra.io/docs/plugin-developer-guide). Once the `shadowJar` is built, add it to the plugins directory:

```dockerfile
ARG IMAGE_TAG=latest
FROM kestra/kestra:$IMAGE_TAG

RUN mkdir -p /app/plugins

COPY /build/libs/*.jar /app/plugins
```

### Add custom plugins from a Git repository

If you would like to build custom plugins from a specific Git repository, you can use the following approach:

```dockerfile
FROM openjdk:17-slim as stage-build
WORKDIR /
USER root

RUN apt-get update -y
RUN apt-get install git -y && \
    git clone https://github.com/kestra-io/plugin-aws.git

RUN cd plugin-aws && ./gradlew :shadowJar

FROM kestra/kestra:latest

## https://github.com/WASdev/ci.docker/issues/194#issuecomment-433519379
USER root

RUN mkdir -p /app/plugins && \
  apt-get update -y && \
  apt-get install -y --no-install-recommends golang && \
  apt-get install -y pip && \
  pip install pandas==2.0.3 requests==2.31.0 && \
  apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*

RUN rm -rf /app/plugins/plugin-aws-*.jar
COPY --from=stage-build /plugin-aws/build/libs/plugin-aws-*.jar /app/plugins
```

This multi-stage Docker build allows you to override a plugin that has already been installed. In this example, the AWS plugin is by default already included in the `kestra/kestra:latest` image. However, it's overridden by a plugin built in the first Docker build stage.