码迷,mamicode.com
首页 > 其他好文 > 详细

# Portainer Exec Container 失败解决方案

时间:2019-12-17 10:27:01      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:upgrade   ESS   nta   pre   github   issue   ref   lock   containe   

近日,将portainer服务挂了个域名,然后用Nginx代理的时候发现不能attach容器了,经过搜索在issue
找到解决方案

1.修改Nginx config

server {
    listen 80;
    server_name portainer.xxx.com;
    location / {
        proxy_pass http://47.xxx.xxx.96:9000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }
    access_log logs/portainer.xxx.com_access.log;
}

2.重启Nginx

nginx -s reload

3.参考

https://github.com/portainer/portainer/issues/1887#issuecomment-460056691

# Portainer Exec Container 失败解决方案

标签:upgrade   ESS   nta   pre   github   issue   ref   lock   containe   

原文地址:https://www.cnblogs.com/zhaozhengyan/p/12052966.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!