安装
只需要一条命令
docker run -d -p 9091:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
NginX 配置
这个配置需要注意 header
部分 ,否则会导致信息无法获取,最好按照下面的去写。
server {
listen 80;
server_name portainer.devspace.com;
access_log /var/log/nginx/portainer_us1.log;
error_log /var/log/nginx/portainer_us1_error.log;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://localhost:9091;
}
}
使用
功能还是比较完善的,主要是比较轻,比 shipyard
要轻得多,界面也很清晰易懂,无论是查看日志还是连接终端都非常迅速,推荐使用。


网友评论