mirror of
https://github.com/clearlinux/docs.git
synced 2026-09-07 14:41:29 +00:00
Re-consistentize $PWD usage
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user