Add ability to name docker servers

This commit is contained in:
Tony Garnock-Jones 2019-05-23 15:51:38 +01:00
parent ac12c14864
commit 6dac70199d
1 changed files with 8 additions and 0 deletions

View File

@ -11,7 +11,15 @@ then
docker network create --internal ${networkname}
fi
if [ -z "$1" ]
then
nameopt=
else
nameopt="--hostname $1"
fi
exec docker run -it --rm \
--network ${networkname} \
$nameopt \
-v "${dir}":/data \
syndicate-js