I have setup a gitlab-ce docker container inside a VM(running Ubuntu 14.4). Once I run the docker image, I am able to access it on my network as 'machinename.local' where machinename is my VM. However, I would like to(if possible) access the docker gitlab image as 'gitlab.local' instead. I've tried publishing with different ports and IP, and tried setting the external URL within the gitlab.rb file. Is there a way to do this or am I just wasting my time?
You want to publish the port (
docker run -p 8080:80 ... if you wanted to publish port 8080 on the host to map to container port 80, these port numbers can be the same). Then you connect to your host ip/port to access your container service. So if your docker host is running on a VM, you'd connect to "http://vmhost:8080/", not "http://containerhost/".