From 64d8d09ea1e4933b9a387d7557be6ecf86d641ce Mon Sep 17 00:00:00 2001 From: Minsoo Kim Date: Thu, 24 Nov 2016 23:43:29 +0900 Subject: [PATCH] =?UTF-8?q?hostname=EC=97=90=20=EC=96=B8=EB=8D=94=EB=B0=94?= =?UTF-8?q?=EB=A5=BC=20=ED=95=98=EC=9D=B4=ED=94=88=EC=9C=BC=EB=A1=9C=20rep?= =?UTF-8?q?lace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/runner/docker-runner | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/runner/docker-runner b/docker/runner/docker-runner index 9e5f302..6071e28 100755 --- a/docker/runner/docker-runner +++ b/docker/runner/docker-runner @@ -1,7 +1,8 @@ #!/bin/bash CONTAINER=$(basename $0) +CONTAINER_HOSTNAME=${CONTAINER/_/-} docker run -it --rm \ - -h ${CONTAINER} \ + -h ${CONTAINER_HOSTNAME} \ -u $(id -u):$(id -g) -e HOME=${HOME} -e USER=${USER} -v ${HOME}:${HOME} \ -v /etc/passwd:/etc/passwd:ro \ -v /etc/group:/etc/group:ro \ -- 2.1.4