From 28746f04da234ad319abb3e93312c97f44f3d770 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 21 Apr 2015 09:41:47 -0600 Subject: [PATCH] Re-consistentize $PWD usage --- iojs/README.md | 2 +- iojs/content.md | 2 +- julia/README.md | 2 +- julia/content.md | 2 +- logstash/README.md | 2 +- logstash/content.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iojs/README.md b/iojs/README.md index 08373e9b4..7d0b810ef 100644 --- a/iojs/README.md +++ b/iojs/README.md @@ -35,7 +35,7 @@ Then simply run: To run a single script, you can mount it in a volume under `/usr/src/app`. From the root of your application directory (assuming your script is named `index.js`): - $ docker run -v ${PWD}:/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js + $ docker run -v "$PWD":/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js # Image Variants diff --git a/iojs/content.md b/iojs/content.md index 1f026ce97..efae55fab 100644 --- a/iojs/content.md +++ b/iojs/content.md @@ -27,4 +27,4 @@ Then simply run: To run a single script, you can mount it in a volume under `/usr/src/app`. From the root of your application directory (assuming your script is named `index.js`): - $ docker run -v ${PWD}:/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js + $ docker run -v "$PWD":/usr/src/app -w /usr/src/app -it --rm iojs iojs index.js diff --git a/julia/README.md b/julia/README.md index 01287d90a..953e501c2 100644 --- a/julia/README.md +++ b/julia/README.md @@ -22,7 +22,7 @@ Starting the Julia REPL is as easy as the following: ## Run Julia script from your local directory inside container - docker run -it --rm -v $(pwd):/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2 + docker run -it --rm -v "$PWD":/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2 # License diff --git a/julia/content.md b/julia/content.md index 611745501..e4d29d10d 100644 --- a/julia/content.md +++ b/julia/content.md @@ -16,4 +16,4 @@ Starting the Julia REPL is as easy as the following: ## Run Julia script from your local directory inside container - docker run -it --rm -v $(pwd):/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2 + docker run -it --rm -v "$PWD":/usr/myapp -w /usr/myapp julia julia script.jl arg1 arg2 diff --git a/logstash/README.md b/logstash/README.md index cd7aed6d6..94522ee02 100644 --- a/logstash/README.md +++ b/logstash/README.md @@ -24,7 +24,7 @@ If you need to run logstash with configuration provided on the commandline, you If you need to run logstash with a configuration file, `logstash.conf`, that's located in your current directory, you can use the logstash image as follows: - docker run -it --rm -v $(pwd):/config-dir logstash logstash -f /config-dir/logstash.conf + docker run -it --rm -v "$PWD":/config-dir logstash logstash -f /config-dir/logstash.conf # License diff --git a/logstash/content.md b/logstash/content.md index bcaf90ffe..5a02e7924 100644 --- a/logstash/content.md +++ b/logstash/content.md @@ -18,4 +18,4 @@ If you need to run logstash with configuration provided on the commandline, you If you need to run logstash with a configuration file, `logstash.conf`, that's located in your current directory, you can use the logstash image as follows: - docker run -it --rm -v $(pwd):/config-dir logstash logstash -f /config-dir/logstash.conf + docker run -it --rm -v "$PWD":/config-dir logstash logstash -f /config-dir/logstash.conf