Closed ltchronus closed 8 years ago
@ltchronus are you using docker inside a virtual machine? If yes then you need to connect to the ip of the VM and not localhost.
docker-machine ip default
192.168.99.100
curl http://192.168.99.100:10080
curl: (7) Failed to connect to 192.168.99.100 port 10080: Connection refused
you probably need need to open ports on the vm. not sure how that's done. I will give it a try and let you know.
After I rm all containers, restart with docker-compose up. It works.
curl http://192.168.99.100:10080/
<html><body>You are being <a href="http://192.168.99.100:10080/users/sign_in">redirected</a>.</body></html>%
great!
I just gave it a try using docker-machine and was able to quickly get it deployed using the following commands:
docker-machine create --driver virtualbox gitlab
eval "$(docker-machine env gitlab)"
wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
docker-compose up -d
# wait for gitlab to start, you can watch the logs using `docker-compose logs`
xdg-open http://$(docker-machine ip gitlab):10080
I'm having the same issue, however running docker directly on my local machine. I'm also pretty new to docker, any pointers where to start looking?
@to266 please share additional information like the docker command or docker-compose.yml file used, the logs, etc. Please refer to https://github.com/sameersbn/docker-gitlab#issues for the specific information that would be useful to get your issue resolved.
I use the default docker-compose.yml that you have here.
to266@ararat ~/s/gitlab> docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.5.1
Git commit: a34a1d5-dirty
Built: Sun Nov 22 00:15:15 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.5.1
Git commit: a34a1d5-dirty
Built: Sun Nov 22 00:15:15 UTC 2015
OS/Arch: linux/amd64
to266@ararat ~/s/gitlab> docker info
Containers: 15
Images: 68
Server Version: 1.9.1
Storage Driver: devicemapper
Pool Name: docker-8:1-4332807-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem:
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 6.445 GB
Data Space Total: 107.4 GB
Data Space Available: 56.27 GB
Metadata Space Used: 6.308 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.141 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.112 (2015-11-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.2.5-1-ARCH
Operating System: Arch Linux (containerized)
CPUs: 8
Total Memory: 31.38 GiB
Name: ararat
ID: YOVL:Q6KQ:AYSS:VHV4:TQNP:DAD5:F2ZS:XCZS:Q3V6:Q74Q:OYIB:ZESH
And here is the log with DEBUG=true
@to266 by any chance did you get the issue resolved?
端口问题,改成其他端口,即可解决该问题,如果,是安装在虚拟机,或者其他主机上,你不能让别人用别的ip来访问主机,会报500错误,你可以将你创建账号分发给别人访问.
I run with docker-compose up. conifg
logs
Everything seems ok in logs,but can't visit in http://localhost:10080