THUDM / THUDM/slime

Suggestion: Unify directory paths in Docker image for better non-root user support

Open
#261 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.5k
Forks
1.3k
Avg merge
5h 36m
Merged PRs (30d)
22

Description

I would like to suggest an improvement to the official Docker image's directory structure to better support non-root users.

Current Situation

The Docker image appears to use /root/Megatron-LM and /sgl-workspace directories, which can cause permission issues for non-root users trying to access these paths.

Problem

  • /root/ directory is only accessible by the root user
  • Non-root users cannot easily access files in these locations
  • This creates friction when users want to run containers as non-root for security reasons

Suggested Solution

Relocate the directories to a standard location like:

  • /opt/Megatron-LM and /opt/sgl-workspace, or
  • /workspace/Megatron-LM and /workspace/sgl-workspace

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Docker image definitions and every reference to /root/Megatron-LM and /sgl-workspace. Check how those paths are created and used, then verify that the selected standard location is accessible to a non-root container user without breaking existing workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.