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:
Jon Cinque 2020-08-27 17:51:41 +02:00 committed by Michael Vines
parent df7710a131
commit 8c43a3da32
2 changed files with 3 additions and 2 deletions

View File

@ -6,12 +6,12 @@ https://hub.docker.com/r/solanalabs/solana/
### Usage:
Run the latest beta image:
```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:
```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.

View File

@ -88,6 +88,7 @@ up)
--publish 8900:8900
--publish 9900:9900
--tty
--ulimit nofile=500000
--env "RUST_LOG=$RUST_LOG"
)
if [[ -n $network ]]; then