summaryrefslogtreecommitdiff
path: root/docker-run.sh
diff options
context:
space:
mode:
authorStephen Enders <smenders@gmail.com>2019-02-17 01:03:42 -0500
committerStephen Enders <smenders@gmail.com>2019-02-17 01:03:42 -0500
commit1aff33c074d77de0c641f9fad96e90f32701a059 (patch)
tree82459a3d11e44eaca0dfb00ea808ad9028426255 /docker-run.sh
parent075d5930b0fc1148b98a11fcb66d95cb4e758f94 (diff)
WIP Post
Diffstat (limited to 'docker-run.sh')
-rwxr-xr-xdocker-run.sh7
1 files changed, 6 insertions, 1 deletions
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