Simplest docker container for using valgrind
clone this repositroy
https://github.com/AuroraSloan/valgrind_docker
Move the files you want to check into the srcs directory
Build the image
docker build -t val .
Run the container
docker run -it -v /<absolute_path>/srcs:/srcs val
-it
will enter you into the container dirctly from the terminal
-v
will allow you to mount a shared directory your local workspace and the container
i.e -v <local path>:<container path>