Get GitLab quickly up and running in less than 5 minutes
Start local GitLab instance using Docker:
docker run -d --name gitlab \
--volume gitlab_config:/etc/gitlab \
--volume gitlab_logs:/var/log/gitlab \
--volume gitlab_data:/var/opt/gitlab \
--publish 80:80 \
gitlab/gitlab-ee:17.5.1-ee.0
Wait for container to finish starting:
while docker container inspect gitlab \
| jq --raw-output '.[].State.Health.Status' \
| grep -q "starting"; do
echo "Waiting for GitLab to finish starting..."
sleep 10
done
–
Show containers and note health:
docker ps -a
Check for data volumes:
docker volume ls
Go to http://gitlab.seatN.inmylab.de
(substitute N with your number)
Enter user root
Retrieve initial root password:
docker exec -it gitlab cat /etc/gitlab/initial_root_password \
| grep ^Password \
| cut -d' ' -f2
Do not worry about the banner! New users require admin approval