Persist dremio docker - path /opt/dremio/data not writable

Hello,

I am running dremio docker. Currently I am trying to persist the data as described here.

I get the following error: “Dremio is exiting. Failure while starting services.
java.io.IOException: path /opt/dremio/data is not writable.”

As solution with docker compose is described here

Is there a solution without using docker compose?

Just found the solution myself. You need to use a named volume:

docker run --rm -v name:/opt/dremio/data -p 9047:9047 -p 31010:31010 -p 45678:45678 dremio/dremio-oss

In this case the docker data ist stored in /opt/dremio/data.

1 Like

@ygpatrick Glad you found the issue, more importantly, thanks a lot for sharing the solution so the community can benefit

Thanks @ygpatrick for that solution, it solved my problem.

Also I was running Dremio in a restrictive RHEL 8 container under WSL 2 in Windows 11 and had to include “–security-opt seccomp=unconfined” too.

docker run --rm -v name:/opt/dremio/data -p 9047:9047 -p 31010:31010 -p 32010:32010 -p 45678:45678 –security-opt seccomp=unconfined dremio/dremio-oss