MENU

升级docker-gitlab到新版本

• 2015 年 10 月 16 日 • 默认分类

预估

To upgrade to newer gitlab releases, simply follow this 4 step upgrade procedure.

Step 1: Update the docker image.

docker pull quay.io/sameersbn/gitlab:8.0.5

Step 2: Stop and remove the currently running image

docker stop gitlab
docker rm gitlab

Step 3: Create a backup

docker run --name gitlab -it --rm [OPTIONS] \

quay.io/sameersbn/gitlab:x.x.x app:rake gitlab:backup:create

Replace x.x.x with the version you are upgrading from. For example, if you are upgrading from version 6.0.0, set x.x.x to 6.0.0

 Step 4: Start the image

Note: Since GitLab 8.0.0 you need to provide the GITLAB_SECRETS_DB_KEY_BASE parameter while starting the image.

docker run --name gitlab -d [OPTIONS] quay.io/sameersbn/gitlab:8.0.5