4cdc059ed
김민수
도커 실행 스크립트
|
1
2
3
4
5
6
7
8
9
10
11
12
13
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} $@
|