Run-script-before/after

As Docker containers require paths to be added or allowed, I have that /shared path for ALL my containers; thus the reason why /shared/docker-stop.sh usage. What is your example?