From 1aff33c074d77de0c641f9fad96e90f32701a059 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Sun, 17 Feb 2019 01:03:42 -0500 Subject: WIP Post --- docker-run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docker-run.sh') diff --git a/docker-run.sh b/docker-run.sh index c6b10df..b94566b 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -1 +1,6 @@ -docker run -it -v $PWD/www:/usr/share/nginx/html:ro -p 80:80 nginx:latest +FLAG=-it +if [ "$1" == "-d" ]; then + FLAG="-d" +fi + +docker run $FLAG -v $PWD/www:/usr/share/nginx/html:ro -p 80:80 nginx:latest -- cgit v1.2.3-54-g00ecf