Properly upgrade to Docker

I figured it out.
Maybe sometime someone else stumbles upon this - so I will elaborate:

  1. Get Dremio Docker image
sudo docker pull dremio/dremio-oss
  1. If applicable: Stop current Dremio service
sudo service dremio stop
  1. Start Docker container (without starting Dremio!)
sudo docker run -d -it --entrypoint /bin/bash -p 9047:9047 -p 31010:31010 -p 45678:45678 dremio/dremio-oss
  1. Get ContainerID of new container
sudo docker ps -a
  1. Copy your current data to the container (replace ContainerID with your actual ContainerID)
sudo docker cp /var/lib/dremio/db/ ContainerID:opt/dremio/data/
  1. Connect to new Docker container as root (replace ContainerID with your actual ContainerID)
sudo docker exec -u root -it ContainerID /bin/bash
  1. Set Owner of copied files within container (replace ContainerID…) and exit
chown -R dremio:dremio /opt/dremio/data/db
exit
  1. Connect to new Docker container as dremio (replace ContainerID with your actual ContainerID)
sudo docker exec -it ContainerID /bin/bash
  1. Run Dremio “upgrade” in container
/opt/dremio/bin/dremio-admin upgrade
  1. Start Dremio and exit
/opt/dremio/bin/dremio start
exit

Maybe there are easier/smarter ways to do this but for now it works.
regards
Muffex