无法启动组成的Portainer
我不知道为什么,但我不能开始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,但这里没有任何反应。
如果我尝试访问本地主机,那么我有Nginx的404。
你有什么主意吗?
在partainer组成的文档中,访问partainer的链接是: http:// localhost / portainer (如果需要,用你的服务器的ipreplacelocalhost)。 所以它使用80端口。 如果您需要使用9000端口,请将此行replace为docker-compose.yml:
ports: - "80:80"
通过
ports: - "9000:80"
并访问它: http:// localhost:9000 / portainer
HTH