docker run --cap-add SYS_PTRACE myimage

Category: Docker

docker run --cap-add SYS_PTRACE myimage

Add a Linux capability (e.g. SYS_PTRACE for debugging)

Grants a specific Linux kernel capability to the container. SYS_PTRACE enables debugging with tools like strace.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.