From 8c43a3da326756c5b2857b50868b36df1ecb8eaa Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Thu, 27 Aug 2020 17:51:41 +0200 Subject: [PATCH] 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. --- sdk/docker-solana/README.md | 4 ++-- web3.js/bin/localnet.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/docker-solana/README.md b/sdk/docker-solana/README.md index 2a9ea9b78..924f8a737 100644 --- a/sdk/docker-solana/README.md +++ b/sdk/docker-solana/README.md @@ -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. diff --git a/web3.js/bin/localnet.sh b/web3.js/bin/localnet.sh index 1ccca7bc5..8e4989a51 100755 --- a/web3.js/bin/localnet.sh +++ b/web3.js/bin/localnet.sh @@ -88,6 +88,7 @@ up) --publish 8900:8900 --publish 9900:9900 --tty + --ulimit nofile=500000 --env "RUST_LOG=$RUST_LOG" ) if [[ -n $network ]]; then