Skip to content

environment variable substitution does not work #2261

@k33g

Description

@k33g

I'm running docker-agent in a container, built and started with docker compose + devcontainer (using the DMR integration). Environment variable substitution does not work (when I try to get the model Id).

compose.yml:

services:

  nemotron3:
    build:
      context: .
      dockerfile: Dockerfile
    network_mode: "host"
    volumes:
      - ..:/workspaces:cached
    command: sleep infinity

    models:
      nemotron3:  

models:

  nemotron3:
    model: huggingface.co/unsloth/nemotron-3-nano-30b-a3b-gguf:Q3_K_M
    context_size: 65536

In the running container:

echo $NEMOTRON3_MODEL
huggingface.co/unsloth/nemotron-3-nano-30b-a3b-gguf:Q3_K_M

docker-agent config:

agents:
  root:
    model: nemotron3
    num_history_items: 50
    skills: true
    description: Bob
    instruction: |
      You are Bob, a useful AI expert

    toolsets:
      - type: shell
      - type: filesystem

models:

  nemotron3:
    provider: dmr
    model: "${env.NEMOTRON3_MODEL}"
    temperature: 0.0
    top_p: 0.8
    presence_penalty: 1.5
    max_tokens: 32768

    provider_opts:
      runtime_flags: ["--context_size=65536"]
      top_k: 20
      repetition_penalty: 1.05
      #min_p: 0.0

I tried:

  • model: "${env.NEMOTRON3_MODEL}"
  • model: "${NEMOTRON3_MODEL}"
  • model: $NEMOTRON3_MODEL
  • model: NEMOTRON3_MODEL
  • model: ${env.NEMOTRON3_MODEL}
  • model: env.NEMOTRON3_MODEL

Nothing works.

Example:

Image

docker-agent version 1.38.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions