binance-node-docker icon indicating copy to clipboard operation
binance-node-docker copied to clipboard

mount volume

Open ChainCoderX opened this issue 4 years ago • 1 comments

Could you share me how to mount the host volume for /home/bnbchaind/.bnbchaind/ ?

I have tried the dir /home/bnbchaind/.bnbchaind/ in container, but bnbchaind panic. if I tried the /home/bnbchaind/ , I found out lost the directories: .bash_logout .bashrc .profile .wget-hsts , but the bnbchaind works fine.

ChainCoderX avatar Jan 12 '21 04:01 ChainCoderX

hi run this command and add volume docker run -d --name binance-node -v {snapshot}:/home/bnbchaind/.bnbchaind/ -p 27146:27146 -p 27147:27147 -p 26660:26660 --restart unless-stopped --security-opt no-new-privileges --ulimit nofile=16000:16000 varnav/binance-node

aliRamshini72 avatar Jan 31 '22 09:01 aliRamshini72