This Docker container was built due to incompatibility issues of running valgrind on macOS 10.12+. The container's image is based on Debian and by default adds the packages make, gcc, g++, and valgrind.
docker build -t docker-valgrind .
docker run -it -v "~/host/directory":/dock docker-valgrind
https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac