Skip to content

Commit

Permalink
Enable ptrace in docker-compose-dev.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Nov 21, 2024
1 parent 3105ad8 commit b7d0736
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ services:
- USER_ID=${USER_ID} # Passes the host user's UID
- GROUP_ID=${GROUP_ID} # Passes the host user's GID
- SHELL=/bin/bash
cap_add:
- SYS_PTRACE # Allow gdb to attach to running process
user: "${USERNAME}"
ipc: host
network_mode: "host" # Allow access to host network for DISPLAY
privileged: true
stdin_open: true # Keeps STDIN open, useful for interactive mode
tty: true # Allocates a pseudo-TTY
command: /opt/qt-creator/bin/qtcreator
command: bash -c "sudo sysctl -w kernel.yama.ptrace_scope=0 && /opt/qt-creator/bin/qtcreator"

0 comments on commit b7d0736

Please sign in to comment.