From 6938eaca3a59a46b13888943bdd9a088d6ccbc9d Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Apr 2016 16:19:23 +1000 Subject: [PATCH] docker amended hostname rules, comply... --- launcher | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launcher b/launcher index 91aa412..1852382 100755 --- a/launcher +++ b/launcher @@ -515,6 +515,10 @@ run_start(){ ( hostname=`hostname -s` + # we got to normalize so we only have allowed strings, this is more comprehensive but lets see how bash does first + # hostname=`$docker_path run $user_args --rm $image ruby -e 'print ARGV[0].gsub(/[^a-zA-Z-]/, "-")' $hostname` + # docker added more hostname rules + hostname=${hostname/_/-} # overwrite hostname if [ "$DOCKER_USE_HOSTNAME" = "true" ] then -- 2.25.1