Re-consistentize $PWD usage
This commit is contained in:
parent
9d7330fe6d
commit
28746f04da
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue