Table of contents
Step 5: View password (default username root)
Step 1: Add Containers
docker run --detach \
--hostname 192.168.243.136 \
--publish 443:443 --publish 80:80 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab:Z \
--volume $GITLAB_HOME/logs:/var/log/gitlab:Z \
--volume $GITLAB_HOME/data:/var/opt/gitlab:Z \
--shm-size 256m \
registry.gitlab.cn/omnibus/gitlab-jh:latest
Step 2: Start the container
docker start gitlab
Step 3: View Containers
docker ps -a
Step 4: Enter the container
docker exec -it gitlab /bin/bash
Step 5: View password (default username root)
cat /etc/gitlab/initial_root_password