Commit 4cdc059ed4831b6dcd644d8efaea7ad72f0211aa
1 parent
57fbf128db
Exists in
master
and in
2 other branches
도커 실행 스크립트
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
run-docker.sh
@@ -0,0 +1,14 @@ | @@ -0,0 +1,14 @@ | ||
1 | +#!/bin/bash | ||
2 | +CONTAINER=prime_oven | ||
3 | +CONTAINER_HOSTNAME=${CONTAINER/_/-} | ||
4 | +docker run -it --rm \ | ||
5 | + -h ${CONTAINER_HOSTNAME} \ | ||
6 | + -u $(id -u):$(id -g) -e HOME=${HOME} -e USER=${USER} -v ${HOME}:${HOME} \ | ||
7 | + -v /etc/passwd:/etc/passwd:ro \ | ||
8 | + -v /etc/group:/etc/group:ro \ | ||
9 | + -v /etc/shadow:/etc/shadow:ro \ | ||
10 | + -v /etc/sudoers:/etc/sudoers:ro \ | ||
11 | + -v /etc/timezone:/etc/timezone:ro \ | ||
12 | + -v /etc/localtime:/etc/localtime:ro \ | ||
13 | + -v $(pwd):/work -v /nfs:/nfs -v /tftpboot:/tftpboot \ | ||
14 | + ${CONTAINER} $@ |