Tag: 泊坞窗

通过Apache主机向Docker容器发送代理请求

我有一台运行Apache Web服务器的Ubuntu服务器主机。 在这个主机上运行的是一个Docker容器,它通过端口configuration来提供Geoserver(通过Tomcat)(从这个镜像构build):0.0.0.0:32770->8080/tcp 我可以使用http://my.domain:32770 / geoserver访问Geoserver 我在主机上的Apache中configuration了一个redirect,通过HTTPS提供所有的请求(请参阅下面的代码片段),在这样的请求中(如https://my.domain:32770 / geoserver ) <VirtualHost *:80> # sending http requests to https ServerName data.nrri.umn.edu Redirect permanent / https://data.nrri.umn.edu/ </VirtualHost> 我尝试解决这个问题的方法是在Apacheconfiguration文件中使用ProxyPass指令: ProxyRequests Off ProxyPreserveHost On ProxyPass /my-geoserver http://127.0.0.1:32770/geoserver ProxyPassReverse /my-geoserver http://127.0.0.1:32770/geoserver 当我使用URL,我期望会让我到像上面那样的Geoserver主页(即http://my.domain/my-geoserver ),我被redirect到https://my.domain/geoserver /index.html,并提供404 Not Found。 我还应该注意, http://my.domain:32770 / geoserver和http://my.domain:32770 / geoserver / index.html都会parsing为http://my.domain:32770 / geoserver / web / 我在这里做错了什么? […]

通过任务json的容器健康状况检查状态

我正在尝试使用docker远程API获取容器状态。 v1.26 我正在调用/任务api来获取节点的任务列表。 有没有办法从GET /任务JSON映射到“健康”的容器状态:{“状态”:“健康”返回时制作/容器/ JSON? 我基本上正在寻找一个相当于/任务API中提供的容器的健康检查

当VPN处于活动状态时,Xdebug remote.host IP已更改

我在MacBook(Sierra 10.12.5)上使用PhpStorm作为我的开发环境。 当我没有连接到我公司的VPN时,PhpStorm中的PhpStormdebugging连接如下所示: docker://docker.companyurl.com/docker-developer:latest/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=192.168.10.1 /opt/project/testscript.php 这工作正常,断点正在工作,一切都很好。 但是,一旦VPN连接(如果我访问内部数据库,我需要做的),连接string变为: docker://docker.companyurl.com/docker-developer:latest/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=10.75.5.4 /opt/project/testscript.php 没有断点被触发,并且脚本在没有任何debugging会话开始的情况下完成。 有谁知道为什么IP地址更改? 我已经尝试过在PhpStorm的Xdebug选项中手动指定正确的IP,但不是覆盖命令行选项,而是重复它,它仍然不会中断。 只要这样下去,我无法高效地工作,所以任何帮助都是值得赞赏的!

Jelastic的run.log不能在docker上工作

我在Jelastic云中部署了一些docker容器,但是容器节点中日志菜单项的run.log文件没有显示任何容器,有时候说The operation could not be performed ,是否有我需要这样做的日志出现? 目前docker图像打印日志到标准输出,并在任何地方工作,除了那里。

为什么docker主机上的Jenkins响应来自容器内部的HTTP请求?

我在安装了Jenkins和Docker的机器上遇到了一些相当奇怪的行为。 为了清晰起见,Jenkins不是作为Docker容器运行,而是在jenkins用户下运行。 当在容器中运行curl时,我得到一个403: root@ada71c8116bf:/# curl -I www.google.co.uk HTTP/1.1 403 Forbidden Date: Tue, 30 May 2017 13:41:07 GMT X-Content-Type-Options: nosniff Set-Cookie: JSESSIONID.f1223778=36hjq9sozhveoe1bfsss1dnq;Path=/;HttpOnly Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 X-Hudson: 1.395 X-Jenkins: 2.46.3 X-Jenkins-Session: 2836b130 X-You-Are-Authenticated-As: anonymous X-You-Are-In-Group-Disabled: JENKINS-39402: use -Dhudson.security.AccessDeniedException2.REPORT_GROUP_HEADERS=true or use /whoAmI to diagnose X-Required-Permission: hudson.model.Hudson.Read X-Permission-Implied-By: hudson.security.Permission.GenericRead X-Permission-Implied-By: hudson.model.Hudson.Administer Content-Length: 793 […]

连接拒绝错误61:Scrapy +飞溅docker

我遇到了一些问题,刮JavaScript网站。 我正在使用docker的scrapy-splash来渲染js到html。 import scrapy from scrapy_splash import SplashRequest class MySpider (scrapy.Spider): name = 'spd' start_urls = ['http://example.com'] def start_requests (self): for url in self.start_urls: yield SplashRequest(url, self.parse, endpoint='render.html', args={'wait':0.5},) def parse (self, response): for href in response.xpath('xpath'): yield {'info': href.xpath('xpath')} 这是我的terminal输出: 2017-05-30 13:20:51 [scrapy.core.engine] INFO: Spider opened 2017-05-30 13:20:51 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at […]

具有特定节点版本的Docker映像

我正在寻找一种方法来得到一个版本v5.10.1节点的Docker节点图像。 Node的官方Docker镜像只有不到4.8或者大于6.0。 谢谢!

如何在VM中创build本地kubernates群集?

我有一套Docker镜像在GKE的Kubernates集群上运行。 我有一个运行在GKE虚拟机上的Jenkins服务器。 我有Docker构build和GKE部署在Jenkins服务器上运行,但是我想在成功构build后在Jenkins服务器上启动一个“本地”集群,在集群中运行我的docker,对集群运行testing,然后closures在将泊坞窗图像部署到GKE之前,请先closures本地群集。 我知道minikube ,但他们声明,你不能运行嵌套虚拟机,我想知道这是否阻止我的梦想testing我的集群部署之前呢? 我必须在物理服务器上运行我的本地集群才能运行我的testing,还是有解决我的问题?

MGT开发环境权限777相符?

将批量文件夹实例化为777时,权限是错误的。 如何解决这个问题? MGTDevelopmentEnvironment 所以Mac

在docker中发送邮件到smtp服务器

我刚安装了一个inbucket的docker镜像( http://www.inbucket.org/ )。 它工作正常,我可以在TCP4 0.0.0.0.10025命令提示符中看到,smtp正在侦听TCP4 0.0.0.0.10025 ,pop3正在侦听TCP4 0.0.0.0.10110 。 我也可以访问localhost:9000上的应用程序的Web界面,所以一切似乎工作正常。 我以前没有使用docker工人,所以我不确定什么邮件地址我需要发送它,所以docker的SMTP服务器将把它捡起来。 我已经尝试解决诸如anyone@inbucket.com , anyone@inbucket.local , anyone@inbucket.org但我不断收到无效的地址返回的消息。 docker邮箱应该如何工作?