Commit 64d8d09ea1e4933b9a387d7557be6ecf86d641ce
1 parent
e5e7954b86
Exists in
master
and in
2 other branches
hostname에 언더바를 하이픈으로 replace
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
docker/runner/docker-runner
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | CONTAINER=$(basename $0) | 2 | CONTAINER=$(basename $0) |
3 | +CONTAINER_HOSTNAME=${CONTAINER/_/-} | ||
3 | docker run -it --rm \ | 4 | docker run -it --rm \ |
4 | - -h ${CONTAINER} \ | 5 | + -h ${CONTAINER_HOSTNAME} \ |
5 | -u $(id -u):$(id -g) -e HOME=${HOME} -e USER=${USER} -v ${HOME}:${HOME} \ | 6 | -u $(id -u):$(id -g) -e HOME=${HOME} -e USER=${USER} -v ${HOME}:${HOME} \ |
6 | -v /etc/passwd:/etc/passwd:ro \ | 7 | -v /etc/passwd:/etc/passwd:ro \ |
7 | -v /etc/group:/etc/group:ro \ | 8 | -v /etc/group:/etc/group:ro \ |