Commit 64d8d09ea1e4933b9a387d7557be6ecf86d641ce

Authored by 김민수
1 parent e5e7954b86
Exists in master and in 2 other branches fhd, fhd-demo

hostname에 언더바를 하이픈으로 replace

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
docker/runner/docker-runner
1 1 #!/bin/bash
2 2 CONTAINER=$(basename $0)
  3 +CONTAINER_HOSTNAME=${CONTAINER/_/-}
3 4 docker run -it --rm \
4   - -h ${CONTAINER} \
  5 + -h ${CONTAINER_HOSTNAME} \
5 6 -u $(id -u):$(id -g) -e HOME=${HOME} -e USER=${USER} -v ${HOME}:${HOME} \
6 7 -v /etc/passwd:/etc/passwd:ro \
7 8 -v /etc/group:/etc/group:ro \
... ...