Skip to content

Commit ffaf490

Browse files
author
Christopher Prener
authored
Merge pull request #38 from unmrds/KarlBenedict-patch-01
corrected docker run syntax
2 parents 0579955 + 5e1d4d9 commit ffaf490

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Please be aware that the `R` package `rasterVis` is not included in the `rocker/
253253
> When `docker run` is used, you can specify a folder on your computer to become accessible inside your RStudio Server instance. The following `docker run` command exposes Jane's `GitHub` directory to RStudio Server. Enter the file path where your workshop resources and data are stored:
254254
>
255255
>~~~
256-
>$ docker run -d -P --name gis /Users/jane/GitHub:/home/rstudio/GitHub rocker/geospatial
256+
>$ docker run -d -P --name gis -v /Users/jane/GitHub:/home/rstudio/GitHub -e PASSWORD=mypass rocker/geospatial
257257
>~~~
258258
>{: .language-bash}
259259
>
@@ -266,7 +266,7 @@ Please be aware that the `R` package `rasterVis` is not included in the `rocker/
266266
>~~~
267267
>{: .language-bash}
268268
>
269-
> An output, for example, of `8787/tcp -> 0.0.0.0:32768` would indicate that you should point your browser to `http://localhost:32768/`. If prompted, enter `rstudio` for both the username and the password.
269+
> An output, for example, of `8787/tcp -> 0.0.0.0:32768` would indicate that you should point your browser to `http://localhost:32768/`. If prompted, enter `rstudio` for the username and the password provided in the `docker run` command above (`mypass` in the example above).
270270
>
271271
> #### Stopping a Container
272272
> When you are done with a Docker session, make sure all of your files are saved locally on your computer **before closing your browser and Docker**. Once you have ensured all of your files are available (they should be saved at the file path designated in `docker run` above), you can stop your Docker container in the terminal:

0 commit comments

Comments
 (0)