AKAI TSUKI

System development or Technical something

start gitlab-ce by docker

ref

docs.gitlab.com

Command

docker run --detach \
 --hostname gitlab.example.com \
 --publish 443:443 --publish 80:80 --publish 1022: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

pull image of gitlab-ce

# docker pull gitlab/gitlab-ce
Using default tag: latest
latest: Pulling from gitlab/gitlab-ce
*snip*
Status: Downloaded newer image for gitlab/gitlab-ce:latest
#
# docker image ls
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
gitlab/gitlab-ce    latest              453d64ae84c7        11 days ago         1.28GB
hello-world         latest              05a3bd381fc2        4 weeks ago         1.84kB
#

start gitlab

# docker run --detach \
>  --hostname gitlab.example.com \
>  --publish 443:443 --publish 80:80 --publish 1022: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
49834fc47143bd4bb50a8a203d00f4d8171c45d3097c9acd65cb6350ab34a955
#