Hi, first of all, I’m a noob regarding Docker.
My company asked me to setup a standalone GitLab instance on an available Windows server. I decided to install Docker for Windows (WLS 2 is activated) and run the GitLab CE image on that. Everything went fine.
Except that I took a shortcut that I don’t know how to fix. Basically in the installation guide in the volumes location section there are no steps for Windows, so I decided to skip it. Then I removed the volume options from the run command:
docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
gitlab/gitlab-ce:latest
Everything works and the company is happy, except that I have no idea where the data is saved. I suppose it defaults inside the Docker, which I just learned is a wrong thing to do.
I discovered my mistake by trying to understand how to update my installation to the latest version, which requires to delete the Docker instance, which didn’t make sense to, since it would possibly delete all the data.
How can I fix this?