mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-28 22:18:52 +00:00
Updated misleading Docker command in README (#440)
* updated confusing command * typo fix * rewording
This commit is contained in:
@@ -50,7 +50,15 @@ This command generates static content into the `build` directory and can be serv
|
|||||||
|
|
||||||
### Launch With Docker
|
### Launch With Docker
|
||||||
|
|
||||||
Use [Docker](https://www.docker.com/) to launch the website without needing to install and configure Yarn:
|
You can also use [Docker](https://www.docker.com/) to launch the website.
|
||||||
|
|
||||||
|
The first time you launch the site this way, use this command to install Yarn and start the server:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node yarn install && yarn start -h 0.0.0.0
|
||||||
|
```
|
||||||
|
|
||||||
|
On subsequent launches, use this command:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node yarn start -h 0.0.0.0
|
docker run --rm -it -v $PWD:$PWD -w $PWD -p 3000:3000 node yarn start -h 0.0.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user