From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Upgrading GitLab

Upgrading GitLab

- [Narrator] GitLab is always releasing new features and new versions will usually contain security enhancements that you will need to apply to your server. Before updating GitLab, always make sure you take a backup of it first just in case you need to roll back. In your SSH session with your GitLab server, type sudo space docker space stop space gitlab to stop the GitLab container. Then type sudo space docker space rm, for remove, space gitlab and hit enter. Now this removed the existing container spawned from our GitLab image. This doesn't delete all of our GitLab data because all of that still resides on our host server under /srv/gitlab. You'll remember that we passed those volume mounting options into the docker run command. Then, pull the latest docker image of GitLab by typing sudo space docker space pull space gitlab/gitlab-ce: and then apply the docker tag of latest and hit enter. Our image is already up to date because we just installed it but if several weeks have gone by…

Contents