Book corrections to allow http api access for docker use (#911)
* Book corrections to allow http api access for docker use * Limit beacon node API to localhost * Add localhost to comment
This commit is contained in:
parent
3c8fe00510
commit
f160f7a21b
@ -49,7 +49,7 @@ $ docker run lighthouse:local lighthouse --help
|
||||
You can run a Docker beacon node with the following command:
|
||||
|
||||
```bash
|
||||
$ docker run -p 9000:9000 -p 5052:5052 -v $HOME/.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse beacon --http
|
||||
$ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 -v $HOME/.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse beacon --http --http-address 0.0.0.0
|
||||
```
|
||||
|
||||
> The `-p` and `-v` and values are described below.
|
||||
@ -78,8 +78,8 @@ $ docker run -p 9000:9000 sigp/lighthouse lighthouse beacon
|
||||
```
|
||||
|
||||
If you use the `--http` flag you may also want to expose the HTTP port with `-p
|
||||
5052:5052`.
|
||||
127.0.0.1:5052:5052`.
|
||||
|
||||
```bash
|
||||
$ docker run -p 9000:9000 -p 5052:5052 sigp/lighthouse lighthouse beacon --http
|
||||
$ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 sigp/lighthouse lighthouse beacon --http --http-address 0.0.0.0
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user