Upgrade Gitlab in Docker installation

I have Gitlab 14.3.2-ee in docker container. It was installed from official image (Docker Hub).

Current version is 14.3.2-ee.
I want to upgrade my instance to 15.5.1-ee (last version on docker hub)

In documentation(GitLab Docker images | GitLab) i’ve readed:
“In most cases, upgrading GitLab is as easy as downloading the newest Docker image tag”
I really need just upgrade image ?

Also i need migrate to Community Edition Docker image.
How i can do it ?

Hi @mrbes

You can downgrade from EE to CE, but you need to make sure you are not using any EE specific features.

As for upgrading, you need to follow the official upgrade paths and version-specific notes.

Hi @balonik
Thanks for you answer!
I dont use EE features - i can just change my image from 14.3.2-ee. to 14.3.2-cc ?
Also, for upgrading - i need upgrade images step-by step
14.3.2 → 14.3.6 (docker pull gitlab/gitlab-ce:14.3.6-ce.0)
14.3.6 → 14.9.5 (docker pull gitlab/gitlab-ce:14.9.5-ce.0)
14.9.5 → 14.10.0 (docker pull gitlab/gitlab-ce:14.10.0-ce.0)
14.10.0 → 15.0.0 (docker pull gitlab/gitlab-ce:15.0.0-ce.0)
15.0.0 → 15.4.0 (docker pull gitlab/gitlab-ce:15.4.0-ce.0)
15.4.0 → 15.5.1 (docker pull gitlab/gitlab-ce:15.5.1-ce.0)

its right way?

Just switching the image should work fine.

From 14.3.2 to latest it should be:
14.3.2 → 14.3.6 → 14.6.2 → 14.9.5 → 14.10.5 → 15.0.2 → 15.1.0 → 15.4.0 → latest

hello, if i want to change my image from 16.7 to 16.10 , should i just change in my docker-compose file ?

Hi,

Yes, that should be enough.

However, I’d recommend you to check out the changes described here (all entries from 16.7-16.10), so you know what issues can you expect during upgrade and if your instance will be affected.

Also, I’d still highly recommend having a rolback plan (backup / VM snapshot) in case something goes wrong and generally do some basic pre/post upgrade checks.

1 Like

hello,
i have this volumes: volumes:

  • /etc/gitlab/config:/etc/gitlab
  • /var/log/gitlab/logs:/var/log/gitlab
  • /var/opt/gitlab/data:/var/opt/gitlab
    and a cronjob that does the backup twice a week
    ########## GITLAB BACKUP.
    00 19 * * 3,6 docker exec gitlab gitlab-backup create >> /home/scripts/gitlab.log 2>&1 &

is that enough?