Skip to content

Fail to run Using Docker #2

@zimuli157

Description

@zimuli157

Description
When testing the Using Docker (optional), when executing the Generate embeddings command, the following error:
command:

docker run \
  --rm \
  -v $(pwd)/.env:/app/.env \
  -v $(pwd)/config:/app/config \
  -v $(pwd)/data:/app/data \
  -v $(pwd)/cache:/app/cache \
  llama-index-vector-search-javascript \
  npm run generate

image

Repro steps

  1. Create a new Codespace or DevContainers.
  2. Run azd auth login.
  3. Run azd env new.
  4. Run azd provision, azd package, azd deploy.
  5. Run docker build -t llama-index-vector-search-javascript ..
  6. Run
docker run \
  --rm \
  -v $(pwd)/.env:/app/.env \
  -v $(pwd)/config:/app/config \
  -v $(pwd)/data:/app/data \
  -v $(pwd)/cache:/app/cache \
  llama-index-vector-search-javascript \
  npm run generate

Environment

  • Azd version: azd version 1.11.0 (commit 5b92e0687e1fa96dfc8292f4b900c0c58610b6a5)
  • OS: Codespaces and DevContainter.

Expected behavior

Run the command successfully.

@manekinekko and @hemarina for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions