Document required host directories to prevent root-owned bind mount issues

This commit is contained in:
2026-04-12 23:52:59 +02:00
parent f7bd21b9fe
commit b3cfe641bb
2 changed files with 25 additions and 1 deletions
+13 -1
View File
@@ -116,10 +116,22 @@ The entrypoint automatically detects the owner of `/workspace` and adjusts the c
## Initial Setup ## Initial Setup
### 1. Create a project directory ### 1. Create host directories
Bind-mounted directories must exist on the host before starting the container. Docker creates missing directories as root-owned, which causes permission issues.
```bash ```bash
# Required
mkdir -p ~/projects mkdir -p ~/projects
# If mounting opencode config (recommended for persistent settings)
mkdir -p ~/.config/opencode
# If using AWS Bedrock
# mkdir -p ~/.aws
# If mounting neovim config
# mkdir -p ~/.config/nvim
``` ```
### 2. Create a `.env` file ### 2. Create a `.env` file
+12
View File
@@ -42,6 +42,18 @@ docker compose run --rm devbox
## Usage ## Usage
### Prerequisites
Bind-mounted directories must exist on the host before starting the container. Docker creates missing directories as root-owned, which causes permission issues.
```bash
# Required: workspace for your projects
mkdir -p ~/projects
# If mounting opencode config (recommended for persistent settings)
mkdir -p ~/.config/opencode
```
### Connecting to the container ### Connecting to the container
From your laptop, SSH into the remote server where Docker is running, then start the container: From your laptop, SSH into the remote server where Docker is running, then start the container: