我对Docker和托管切片服务器都是陌生的。我正在尝试使用Docker版本1.13.1在CentOS 7.5上安装OpenMapTile Docker容器。用于运行安装程序的docker命令输出向导错误。即使从netstat看到正在使用端口8080,Firefox也无法连接。我用nc模拟连接。这就是我得到的。
nc localhost 8080 GET / HTTP/1.1
Ncat: Broken pipe.
这是防火墙设置
firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: enp5s0
sources:
services: ssh dhcpv6-client
ports: 8080/tcp 14500/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
这是Docker命令的输出
docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/openmaptiles-server
/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2018-10-16 18:02:40,889 CRIT Supervisor running as root (no user in config file)
2018-10-16 18:02:40,889 INFO Included extra file "/etc/supervisor/conf.d/openmaptiles.conf" during parsing
2018-10-16 18:02:40,892 INFO Creating socket tcp://localhost:8081
2018-10-16 18:02:40,894 INFO Closing socket tcp://localhost:8081
2018-10-16 18:02:40,901 INFO RPC interface 'supervisor' initialized
2018-10-16 18:02:40,901 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2018-10-16 18:02:40,901 INFO supervisord started with pid 1
2018-10-16 18:02:41,905 INFO spawned: 'wizard' with pid 9
2018-10-16 18:02:41,906 INFO spawned: 'xvfb' with pid 10
Starting OpenMapTiles Map Server (action: run)
2018-10-16 18:02:42,571 INFO success: wizard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-10-16 18:02:42,571 INFO success: xvfb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-10-16 18:02:42,580 INFO exited: wizard (exit status 1; not expected)
谢谢