Ubuntu install gitlab-ce

Original link:current page


No usage information.

install docker

sudo apt-get install docker

then check

sudo docker run hello-world

if the result is as follow

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:

For more examples and ideas, visit:

it is ok now
next step is to install gitlab

docker run --detach \
--hostname gitlab.copdips.local \
--publish 443:443 --publish 8008:80 --publish 10022: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 \

it means

the tcp port 443 is map to 443,
the tcp port 8008 is map to 80, if you want to visit the gitlab by browser, you need to input the address: your_ip:8008/, 
the ssh port 10022 is map to 22, you need to checkout the address ssh://git@your_ip:10022/your_project_name.git


  • Last modified: 2019/09/29 10:09