Update nofile flag in Docker to run Solana
Currently, the Solana Docker container does not start because it requires `nofile` to be at least 500000, and the default behavior is 1024. This fixes the documentation and running script to properly set the ulimit to 500000.
This commit is contained in:
parent
df7710a131
commit
8c43a3da32
|
@ -6,12 +6,12 @@ https://hub.docker.com/r/solanalabs/solana/
|
||||||
### Usage:
|
### Usage:
|
||||||
Run the latest beta image:
|
Run the latest beta image:
|
||||||
```bash
|
```bash
|
||||||
$ docker run --rm -p 8899:8899 solanalabs/solana:beta
|
$ docker run --rm -p 8899:8899 --ulimit nofile=500000 solanalabs/solana:beta
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the latest edge image:
|
Run the latest edge image:
|
||||||
```bash
|
```bash
|
||||||
$ docker run --rm -p 8899:8899 solanalabs/solana:edge
|
$ docker run --rm -p 8899:8899 --ulimit nofile=500000 solanalabs/solana:edge
|
||||||
```
|
```
|
||||||
|
|
||||||
Port *8899* is the JSON RPC port, which is used by clients to communicate with the network.
|
Port *8899* is the JSON RPC port, which is used by clients to communicate with the network.
|
||||||
|
|
|
@ -88,6 +88,7 @@ up)
|
||||||
--publish 8900:8900
|
--publish 8900:8900
|
||||||
--publish 9900:9900
|
--publish 9900:9900
|
||||||
--tty
|
--tty
|
||||||
|
--ulimit nofile=500000
|
||||||
--env "RUST_LOG=$RUST_LOG"
|
--env "RUST_LOG=$RUST_LOG"
|
||||||
)
|
)
|
||||||
if [[ -n $network ]]; then
|
if [[ -n $network ]]; then
|
||||||
|
|
Loading…
Reference in New Issue