Modifying the location data of the volume gitlab

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

gitlabGitlab file directory is stored data folder, move it to the /datadirectory.

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.

Published 145 original articles · won praise 357 · views 440 000 +

Guess you like

Origin blog.csdn.net/wf19930209/article/details/104112519