Skip to content

Fix: "chdir: permission denied" when running Compose actions (up/down/stop) #8

Description

@shubh-io

Problem ‼️

When attempting to manage a Docker/Podman Compose project, the application returns a "permission denied" error during the directory change (chdir) process.

Error Message:

Error: compose error (docker up): chdir /path/to/project: permission denied

Cause

This occurs when the binary (DockMate) is running with a user who does not have ownership or sufficient permissions to access the project directory containing the compose.yaml file.

Solution ✅

You must grant ownership of the project folder to your current user. Run the following command in your terminal:

sudo chown -R $USER:$USER ~/path/to-your-folder/

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions