본문 바로가기

카테고리 없음

Docker Desktop Gitlab 설치및 설정

Docker Desktop이 설치됐다는 가정하에 시작한다.

1.  cmd

2.  docker pull gitlab/gitlab-ce

3.  docker run --detach --hostname 127.0.0.1 --publish 8929:80 --publish 2224:22 --name gitlab --restart always --volume /srv/gitlab/config:/etc/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --volume /srv/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest

4.  http://localhost:8929/

5.  root 계정 비번초기화

6.  docker exec -it container_id /bin/bash

7.  gitlab-rails console -e production

8.  user = User.where(id: 1).first

9.  user.password='변경할비밀번호'

10.  user.password_confirmation='변경할비밀번호'

11.  user.save

12. http://localhost:8929/      root/변경한비밀번호 로그인