File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ $ docker run lighthouse:local lighthouse --help
107107You can run a Docker beacon node with the following command:
108108
109109``` bash
110- $ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 -v $HOME /.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse --network mainnet beacon --http --http-address 0.0.0.0
110+ $ docker run -p 9000:9000/tcp -p 9000:9000/udp -p 127.0.0.1:5052:5052 -v $HOME /.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse --network mainnet beacon --http --http-address 0.0.0.0
111111```
112112
113113> To join the Pyrmont testnet, use ` --network pyrmont ` instead.
@@ -130,18 +130,18 @@ $ docker run -v $HOME/.lighthouse:/root/.lighthouse sigp/lighthouse lighthouse b
130130
131131### Ports
132132
133- In order to be a good peer and serve other peers you should expose port ` 9000 ` .
133+ In order to be a good peer and serve other peers you should expose port ` 9000 ` for both TCP and UDP .
134134Use the ` -p ` flag to do this:
135135
136136``` bash
137- $ docker run -p 9000:9000 sigp/lighthouse lighthouse beacon
137+ $ docker run -p 9000:9000/tcp -p 9000:9000/udp sigp/lighthouse lighthouse beacon
138138```
139139
140140If you use the ` --http ` flag you may also want to expose the HTTP port with `-p
141141127.0.0.1:5052:5052`.
142142
143143``` bash
144- $ docker run -p 9000:9000 -p 127.0.0.1:5052:5052 sigp/lighthouse lighthouse beacon --http --http-address 0.0.0.0
144+ $ docker run -p 9000:9000/tcp -p 9000:9000/udp -p 127.0.0.1:5052:5052 sigp/lighthouse lighthouse beacon --http --http-address 0.0.0.0
145145```
146146
147147[ docker_hub ] : https://hub.docker.com/repository/docker/sigp/lighthouse/
You can’t perform that action at this time.
0 commit comments