Ask AI

Docker agent configuration reference#

This guide is applicable to Dagster+.

This reference describes the various configuration options Dagster+ currently supports for Docker agents.

Environment variables and secrets#

Using the container_context.docker.env_vars property, you can include environment variables and secrets in the Docker container associated with a specific code location. For example:

# dagster_cloud.yaml
  - location_name: cloud-examples
    image: dagster/dagster-cloud-examples:latest
      package_name: dagster_cloud_examples
          - DATABASE_NAME
          - DATABASE_USERNAME=hooli_testing

The container_context.docker.env_vars property is a list, where each item can be either KEY or KEY=VALUE. If only KEY is specified, the value will be pulled from the local environment.

Refer to the following guides for more info about environment variables: