Modifying the location data of the volume gitlab
When using docker installation gitlab, at the beginning we did not consider other things, directly in the local creation of a data volume to be mounted to the container, resulting in more and more follow-up data, want to put other data disk can be roughly like this operating.
1. Stop vessel
docker stop gitlab
2. The original data folder to a new location
gitlab
Gitlab file directory is stored data folder, move it to the /data
directory.
mv gitlab /data/
3. Create a folder link
ln -s /data/gitlab gitlab
The original gitlab folder where you link to where.
4. Restart container gitlab
docker start gitlab
Completed, this method is the use of folders soft connection characteristics.