- run some container eg.
nginx
on background
LAST_CONTAINER_ID=`docker run -d nginx`
- find his pid
LAST_CONTAINER_PID=`docker inspect $LAST_CONTAINER_ID | jq ".[0].State.Pid"`
- run exec.pl
carton exec perl exec.pl $LAST_CONTAINER_PID
cd /usr/include
sudo h2ph -r -l .
carton is perl module dependency manager (aka bundler for ruby)