jenkins # installation gitlab

By mounting docker gitlab reference

------------------------------

Pull docker image:

docker pull gitlab/gitlab-ce

 

Create a directory to store gitlab file:

mkdir -p /opt/gitlab/config
mkdir -p /opt/gitlab/logs
mkdir -p /opt/gitlab/data

 

Run container:

docker run -d  -p 2222:22 -p 8001:80 -p 8443:443  \
     --volume /opt/gitlab/config:/etc/gitlab \
     --volume /opt/gitlab/logs:/var/log/gitlab  \
     --volume /opt/gitlab/data:/var/opt/gitlab \
     --restart always \
     --name gitlab gitlab/gitlab-ce

 

If the container when running error may be due to start and stop the firewall, you can try to restart docker service, and then try to run the container

 

Guess you like

Origin www.cnblogs.com/luohaonan/p/11770581.html