varnav / binance-node-docker

Docker image for Binance full and light nodes
MIT License
25 stars 11 forks source link

mount volume #14

Open wade-liwei opened 3 years ago

wade-liwei commented 3 years ago

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.

aliRamshini72 commented 2 years ago

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