I was trying to setup Besu private network using this tutorial .
Steps to reproduce :
- Pulled code in vs code.
- ran docker-compose up
My Environment (Windows).
Error faced : Error response from daemon: error while mounting volume '/var/lib/docker/volumes/besu-qbft-docker_validator1-data/_data': failed to mount local volume: mount /data/validator1:/var/lib/docker/volumes/besu-qbft-docker_validator1-data/_data, flags: 0x1000, data: nolock,soft,uid=1000,gid=1000: no such file or directory
Same steps as mentioned in the tutorial and expected same outcome.
I was trying to setup Besu private network using this tutorial https://github/Consensys/besu-qbft-docker .
Steps to reproduce :
- Pulled code in vs code.
- ran docker-compose up
My Environment (Windows).
Error faced : Error response from daemon: error while mounting volume '/var/lib/docker/volumes/besu-qbft-docker_validator1-data/_data': failed to mount local volume: mount /data/validator1:/var/lib/docker/volumes/besu-qbft-docker_validator1-data/_data, flags: 0x1000, data: nolock,soft,uid=1000,gid=1000: no such file or directory
Same steps as mentioned in the tutorial and expected same outcome.
Share Improve this question asked Feb 10 at 15:11 Tinesh KumarTinesh Kumar 11 Answer
Reset to default 0The docker-compose file is misconfigured. The $PWD
is meant to represent the current working directory, but should be surrounded by brackets. Change each relevant line under the volumes:
section to be as such:
${PWD}/${VALIDATOR1_DATA_PATH}
Then try running docker compose up
from the root of the directory again!