Overview: We dockerized our gitlab.
–Initially we dockerized our gitlab with “gitlab/gitlab-ee:8.4.4-ee.0” version.
–restore 8.4.4-ee non-dockerized gitlab version backup into our dockerized gitlab-ee:8.4.4-ee.0
Our goal is upgrade dockerized gitlab from 8.4.4-ee.0 to 8.8.1-ee.0 with existing repository (data). We performed below steps through ansible playbook and it given ‘gitlab-ctl reconfigure’ error “INFO: Port 8889 in use: Address already in use - bind(2) for 127.0.0.1:8889”.
steps performed during upgrade.
- docker pull gitlab/gitlab-ee:8.8.1-ee.0
- docker stop
docker ps -a | grep gitlab | awk '{print $1}'
- docker rm
docker ps -a | grep gitlab | awk '{print $1}'
- remove existing gitlab docker image.
-
- name: Start gitlab
shell: docker run --detach
–hostname gitlab.example.com
–publish 443:443 --publish 80:80
–name gitlab
–restart always
–volume /srv/gitlab/config:/etc/gitlab:Z
–volume /srv/gitlab/logs:/var/log/gitlab:Z
–volume /opt/gitlabData:/var/opt/gitlab:Z
gitlab/gitlab-ee:8.8.1-ee.0
- name: Start gitlab
- configure LDAP
- docker exec gitlab gitlab-ctl reconfigure
Step#7 (gitlab-ctl reconfigure) given below error.
[2016-06-10T13:15:05+00:00] INFO: Port 8889 in use: Address already in use - bind(2) for 127.0.0.1:8889
Please advice solution for this issue.
Note: Our Linux distribution details.
cat /proc/version
Linux version 3.10.0-327.13.1.el7.x86_64 (mockbuild@x86-019.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ) #1 SMP Mon Feb 29 13:22:02 EST 2016