I have a git repo with some directory convention and bash scripts. Ex stop is just
#!/bin/bash
name=synapse
docker stop $name
docker rm $name
etc. depending on what actions I need to do against container I have bash script for that and if I need to perform same action against other container I just copy paste this file and change name variable. I pull this repo to my containers host and just type ./bin/synapse/stop and I stop synapse.
Hope that makes sense.

The World Is Not Enough