Skip to content

fix: open container directory at WorkingDir instead of root#12265

Open
jakub961241 wants to merge 1 commit into1Panel-dev:dev-v2from
jakub961241:fix/container-directory-workingdir-12255
Open

fix: open container directory at WorkingDir instead of root#12265
jakub961241 wants to merge 1 commit into1Panel-dev:dev-v2from
jakub961241:fix/container-directory-workingdir-12255

Conversation

@jakub961241
Copy link

Summary

Fixes #12255 - Container directory view shows root / instead of the container's working directory.

Changes

When clicking Directory on a container, the file browser now:

  1. Calls inspect API to get the container's Config.WorkingDir
  2. Opens the file browser at that path (e.g., /app, /var/www)
  3. Falls back to / if WorkingDir is not set or inspect fails

Changed files

  • frontend/src/views/container/container/index.vue - Fetch WorkingDir via inspect before opening file browser
  • frontend/src/views/container/container/file-browser/index.vue - Accept optional workingDir parameter
fix: Container directory view now opens at the container's WorkingDir instead of always starting at root (#12255)

…ev#12255)

When clicking "Directory" on a container, the file browser always
opened at `/` (root). Now it inspects the container first and opens
at the container's configured WorkingDir (e.g., `/app`, `/var/www`).

Falls back to `/` if WorkingDir is not set or inspect fails.

Fixes 1Panel-dev#12255
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 21, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zhengkunwang223 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Docker Container Directory View Shows Root Path Instead of Expected Directory

1 participant