Hi, this is my first time deploying Gitlab using Docker Engine in Centos 7 Core. I`m following guide from https://docs.gitlab.com/omnibus/docker/#install-gitlab-using-docker-engine to set up Gitlab docker.
I`m using custom port for the HTTP, HTTPS and SSH since the port 80, 443 and 22 already used.
sudo docker run --detach \
--hostname example.com \
--publish 10443:443 --publish 8080:80 --publish 10022:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
** where example.com will be my server domain
After 4 minutes i checked my container state using “docker container ls | grep gitlab”
I found the Gitlab container in “Unhealthy”.
[root@svr logs]# docker container ls | grep gitlab
59b450bd6ab5 gitlab/gitlab-ce:latest "/assets/wrapper" 12 minutes ago Up 12 minutes (unhealthy) 0.0.0.0:10022->22/tcp, 0.0.0.0:8080->80/tcp, 0.0.0.0:10443->443/tcp gitlab.
Is there any configuration that i missed during installation ? Where should I start perform the troubleshooting.
Update
I have test similar set up on Google Cloud VM (Free tier), it work fine. The container run in healthy state.
I check container logs on the server using "docker logs gitlab"
. I found error on Gitlab-Workhorse
==> /var/log/gitlab/gitlab-workhorse/current <==
{"correlation_id":"e1xdPlmbME2","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"error","time":"2020-11-23T07:48:52Z","uri":"/-/metrics"}
{"content_type":"text/html; charset=utf-8","correlation_id":"e1xdPlmbME2","duration_ms":0,"host":"127.0.0.1:8080","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":502,"system":"http","time":"2020-11-23T07:48:52Z","uri":"/-/metrics","user_agent":"Prometheus/2.20.1","written_bytes":2940}
In Google Cloud VM, I does not found this kind of error.