Re-consistentize $PWD usage

This commit is contained in:
Tianon Gravi 2015-04-21 09:41:47 -06:00
parent 9d7330fe6d
commit 28746f04da
6 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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