Does anyone know where I can research why my docker container won’t retain configuration and repo data after restart? I was able to successfully restart the container once during initial testing. Then I pulled over several repos. Finally, server had an unplanned restart. I log into the Gitlab instance and all projects, users, and configs are gone.
I have a NFS mounted drive used for the $GITLAB_HOME variable. This same drive with different paths works fine for other containers.
Here is my Docker run command:
sudo docker run --detach --hostname gitlab.example.com --publish 7443:443 --publish 8080:80 --publish 2222:22 --name gitlab --restart always --volume $GITLAB_HOME/config:/etc/gitlab --volume $GITLAB_HOME/logs:/var/log/gitlab --volume $GITLAB_HOME/data:/var/opt/gitlab --shm-size 256m gitlab/gitlab-ee:latest
When I check the NFS Server it shows that about 40G exist still, about the size of the repos I pulled over. Additionally, I can cat out the directories and see the gitlab.rb file is there.
I think it may be an issue with the directory having owners/group of root, but I am not sure because it worked the first time. I would like to not have to repull the 40G, but that isn’t a big issue. I just need to get to a stage of safety for the repos I will create in the future.