I am able to get a working instance of Dremio on Docker, but, I would like to persist the data on the container on my local.
I tried the approach mentioned in this post, and crafted my own version of the docker run query, but upon running the following:
docker run --rm -v "/home/ubuntu/dremio/data/lib:/var/lib/dremio" -v "/home/ubuntu/dremio/data/localFiles:/localFiles" -v "/home/ubuntu/dremio/data/:/opt/dremio/data" -p 9047:9047 -p 31010:31010 -p 45678:45678 dremio/dremio-oss
It shows the following error when run in non-detached mode:
Dremio is exiting. Failure while starting services.
java.io.IOException: path /opt/dremio/data is not writable.
Any help would be appreciated.
2
Answers
Try running the command with sudo, probably you don’t have the privileges to execute this.
Using the following Docker Compose file – docker-compose.yml – I was able to persist data from a Dremio container:
I launched Dremio using the ‘docker-compose up’ command.