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} $@