portainer Failure Unable to resize TTY解决方案
Posted dounine
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了portainer Failure Unable to resize TTY解决方案相关的知识,希望对你有一定的参考价值。
使用默认端口连接portainer操作控制console不存在这问题,但使用nginx转发https后问题出现,出现如下问题异常
Failure Unable to resize TTY
解决方案
1.不使用nginx进行转发,使用默认的potainer
所提供的ssl连接方案(扩展性单一)。
2.配置nginx
转发服务
nginx -v
nginx version: nginx/1.10.2
server
listen 80;
server_name portainer.xxxHost.com;
return 301 https://$host$request_uri;
server
listen 443;
server_name portainer.xxxHost.com;
ssl on;
ssl_certificate /path/to/ssl/xxxHost.com.crt;
ssl_certificate_key /path/to/ssl/xxxHost.com.key;
location /
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://127.0.0.1:9000;
location /api/websocket/
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:9000/api/websocket/;
经分析得出是websockset
出的问题,使用以上两种方案可解决。


以上是关于portainer Failure Unable to resize TTY解决方案的主要内容,如果未能解决你的问题,请参考以下文章