Comment on Element/Matrix Official Docker Install Method?
vane@lemmy.world 2 weeks agoI 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 such action on other container I just copy paste and change name variable. So I pull this repo to my container host and just type ./bin/synapse/stop and I stop synapse.
Hope that makes sense.
captcha_incorrect@lemmy.world 2 days ago
Have you considered replace the name with input from stdin? So instead of
name=synapseyou could doname=$1and have one script to use for all containers.