This is an old revision of the document!
Choose from the official ubuntu website.
Here : 16.04.1 Long Term Support (LTS)
Follow the guidelines from the official website
Use the pull command as described on the docker website
Remark : sudo should be used here as sudo https://hub.docker.com/r/gitlab/gitlab-ce/
Then, run gitlab from docker :
sudo docker run --detach \ --hostname gitlab.example.com \ --publish 10443:443 --publish 10080: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 \ gitlab/gitlab-ce:latest
How to inspect which container is running ?
sudo docker ps
How to inspect existing containers :
$ docker ps -a
If you need to remove a container
$ docker rm drunk_fermi
or forcefully using,
$ docker rm -f drubk_fermi
Access the GitLab shell
sudo docker exec -it gitlab /bin/bash
Access directly the main config file
sudo docker exec -it gitlab /bin/bash