Skip to content

[Bug]: Can't use dstack user in dstackai/base images #3436

@un-def

Description

@un-def

Steps to reproduce

  1. type: task
    
    user: dstack
    
    commands:
      - pip --version
  2. type: dev-environment
    
    user: dstack
    $ ssh <run-name>
    dstack@32eabbd51332:/dstack/run$ mpirun --hostfile $DSTACK_MPI_HOSTFILE -n 1 -N 1 hostname
    

Actual behaviour

  1. To run a command as administrator (user "root"), use "sudo <command>".
    See "man sudo_root" for details.
    
    error: Failed to create virtual environment
      Caused by: failed to create directory `/dstack/venv`: Permission denied (os error 13)
    
    Exited (2)
  2. --------------------------------------------------------------------------
    Open RTE was unable to open the hostfile:
        /root/.dstack/mpi/hostfile
    Check to make sure the path and filename are correct.
    --------------------------------------------------------------------------
    

Expected behaviour

No response

dstack version

0.20.1

Server logs

Additional information

No response

Metadata

Metadata

Assignees

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