generate coredump for docker container
· One min read
- use
--cap-add=SYS_PTRACE
flag when running the container
docker run --cap-add=SYS_PTRACE ...
- add it to a
docker-compose
file
version: '3'
services:
your-service:
image: your-image
cap_add:
- SYS_PTRACE