Skip to content

Instantly share code, notes, and snippets.

@oliveira-andre
Last active August 30, 2021 21:55
Show Gist options
  • Save oliveira-andre/759d9bf8ef2f65671346fe54c3a24e62 to your computer and use it in GitHub Desktop.
Save oliveira-andre/759d9bf8ef2f65671346fe54c3a24e62 to your computer and use it in GitHub Desktop.
run gitlab

gitlab via docker

install and run docker:

sudo docker run --hostname gitlab.oliveira-andre.dev --publish 8443:443 --publish 8080:80 --publish 2200:22 --name gitlab --restart always -v logs:/var/log/gitlab -v data:/var/opt/gitlab gitlab/gitlab-ce:latest

show logs

sudo docker logs -f gitlab

login with user root and get password with:

sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment