github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/agent/clib/clib_linux.go (about) 1 //go:build linux 2 // +build linux 3 4 package main 5 6 import ( 7 "errors" 8 9 "github.com/pyroscope-io/pyroscope/pkg/util/caps" 10 ) 11 12 func performOSChecks() error { 13 if !caps.HasSysPtraceCap() { 14 return errors.New("if you're running pyroscope in a Docker container, add --cap-add=sys_ptrace." + 15 "See our Docker Guide for more information: https://pyroscope.io/docs/docker-guide") 16 } 17 return nil 18 }