Skip to content

[Bug]: pip not in PATH in dstackai/efa image – causes exit status 127 #2728

@Bihan

Description

@Bihan

Steps to reproduce

  1. Create task with the following configuration:
type: task
name: test-efa

image: dstackai/efa

commands:
  - pip install torch

resources:
  gpu: 1

  1. Run the task

Actual behaviour

The task fails immediately with the following error:

Run failed with error code CONTAINER_EXITED_WITH_ERROR.
Exit status: 127.

This indicates that the pip command is not found in the container’s PATH.

Expected behaviour

  1. pip should be available in the default PATH so that standard Python package installation commands work out of the box.

This was confirmed to be a PATH issue by adding the following to the task:

commands:
  - export PATH=/opt/conda/envs/workflow/bin:$PATH
  - pip install torch

This workaround succeeds, confirming the missing pip from PATH.

  1. Include uv as the default Python package manager, consistent with other official dstack images.

dstack version

master branch at commit 1e16fe1

Server logs

Additional information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions