我不知道为什么,但是我无法启动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。
你有什么主意吗?
最佳答案
在partainer撰写的文档中,访问partainer的链接为:http://localhost/portainer(如果需要,用服务器的ip替换localhost)。因此它使用80端口。
如果需要使用9000端口,请在docker-compose.yml中替换以下行:
ports:
- "80:80"
通过
ports:
- "9000:80"
并访问它:http://localhost:9000/portainer
高温超导
关于docker - 无法启动组成的Portainer,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47250336/