我不知道为什么,但我无法启动portainer。
我下载了https://github.com/portainer/portainer-compose
我做了docker-compose up
一切似乎都很好:
portainer-proxy
docker ps
CONTAINER ID IMAGE COMMAND CREATED
9c01c18dcc23 portainer/portainer:latest "/portainer --temp..." 5 minutes ago
2de6b22cadb0 portainer_proxy "nginx -g 'daemon ..." 10 minutes ago
1c0166b3f870 v2tec/watchtower "/watchtower --cle..." 10 minutes ago
893a507f62e3 portainer/templates "nginx -g 'daemon ..." 10 minutes ago
我在日志中有这个:
portainer-app | 2017/11/12 15:01:54 Warning: the --templates / -t flag is deprecated and will be removed in future versions.
portainer-app | 2017/11/12 15:01:54 Starting Portainer 1.15.1 on :9000
我应该可以在端口9000上访问portainer,但这里什么也没发生。
如果我尝试访问localhost,那么我从nginx获得404。
你有什么想法吗?
答案 0 :(得分:1)
在partainer撰写的doc中,访问partainer的链接是:http://localhost/portainer(如果需要,可以通过服务器的ip替换localhost)。所以它使用80端口。 如果您需要使用9000端口,请将此行替换为docker-compose.yml:
ports:
- "80:80"
通过
ports:
- "9000:80"
访问它:http://localhost:9000/portainer
HTH