dangerously-skip-permissions using a devcontainer

Resolved 💬 9 comments Opened May 1, 2025 by danieldeusing Closed May 1, 2025

I am getting

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                        │
│ WARNING: Claude Code running in Bypass Permissions mode                                                                │
│                                                                                                                        │
│ In Bypass Permissions mode, Claude Code will not ask for your approval before running potentially dangerous commands.  │
│ This mode should only be used in a sandboxed container/VM that has restricted internet access and can easily be        │
│ restored if damaged.                                                                                                   │
│                                                                                                                        │
│ By proceeding, you accept all responsibility for actions taken while running in Bypass Permissions mode.               │
│                                                                                                                        │
│ https://docs.anthropic.com/s/claude-code-security                                                                      │
│                                                                                                                        │
│   1. No, exit                                                                                                          │
│ ❯ 2. Yes, I accept✔                                                                                                    │
│                                                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
   Enter to confirm · Esc to exit
root@cc-master:/workspace# claude --dangerously-skip-permissions
--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons

I totally understand the security concerns, but as I am in a self made dev-container, I explicity want also root to be able to run the skip-permission mode.

View original on GitHub ↗

This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗