From 4cdc059ed4831b6dcd644d8efaea7ad72f0211aa Mon Sep 17 00:00:00 2001 From: Minsoo Kim Date: Thu, 24 Nov 2016 23:44:57 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8F=84=EC=BB=A4=20=EC=8B=A4=ED=96=89=20?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run-docker.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 run-docker.sh diff --git a/run-docker.sh b/run-docker.sh new file mode 100755 index 0000000..e12afdc --- /dev/null +++ b/run-docker.sh @@ -0,0 +1,14 @@ +#!/bin/bash +CONTAINER=prime_oven +CONTAINER_HOSTNAME=${CONTAINER/_/-} +docker run -it --rm \ + -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 \ + -v /etc/shadow:/etc/shadow:ro \ + -v /etc/sudoers:/etc/sudoers:ro \ + -v /etc/timezone:/etc/timezone:ro \ + -v /etc/localtime:/etc/localtime:ro \ + -v $(pwd):/work -v /nfs:/nfs -v /tftpboot:/tftpboot \ + ${CONTAINER} $@ -- 2.1.4