Articles of Docker

为什么我的Jetty服务器loggingDNS错误?

我有一个Xen虚拟机,我安装了Jetty 7.4.5,运行Hudson实例。 它工作正常大约一个月。 今天我们已经注意到哈德森无法生成构build。 问题是我们在磁盘上没有更多空间,因为我们有一天前的一个docker日志文件,有34 Gb的数据。 这个文件包含了很多关于DNS的消息,如下所示: 21/09/2011 07:34:30 javax.jmdns.impl.DNSIncoming$MessageInputStream readName GRAVE: Extended label are not currently supported. 21/09/2011 07:34:30 javax.jmdns.impl.DNSIncoming$MessageInputStream readName GRAVE: Extended label are not currently supported. 21/09/2011 07:34:30 javax.jmdns.impl.DNSIncoming$MessageInputStream readName GRAVE: Extended label are not currently supported. 21/09/2011 07:34:30 javax.jmdns.impl.DNSIncoming$MessageInputStream readName GRAVE: Extended label are not currently supported. 21/09/2011 07:34:30 javax.jmdns.impl.constants.DNSRecordType typeForIndex […]

在生产中保护Apache Solr

我正在设置将用于为Web应用程序索引数据的Apache Solr 4.1。 只有networking应用程序才能访问Solr。 用户和其他客户不会直接与Solr对话。 什么是保护这种types的Solr设置的一些最佳做法? (我们使用Jetty运行Solr)

禁用连接:在Jetty 9中保持活动状态

如何在Jetty 9中禁用保持活动状态? 运行在64位CentOS下,如果有所作为。 XMLconfiguration解决scheme是首选。

nginx正在运行,但没有服务?

我一直试图设置nginx作为docker的代理。 我有一台运行Ubuntu服务器的笔记本电脑。 现在我在localhost:8080上运行docker,并在http://192.168.1.5:8080/my-webapp-0.1.0-standalone/上为应用程序的主页提供服务。 我这样configurationnginx( 我是从这个页面改编的 ): server { listen 80; server_name nomilkfor.me; rewrite ^(.+?)/?$ http://nomilkfor.me$1 permanent; } server { listen 80; server_name www.nomilkfor.me; root /usr/share/nginx/html; location / { try_files $uri @my-webapp; } location @my-webapp { proxy_pass http://localhost:8080; } } 我可以从我的家庭networking连接到nginx,并看到nginx欢迎屏幕。 我也试过$ sudo netstat -tanpl|grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3264/nginx: worker 我看到nginx正在端口80上听。 但是当我尝试加载nomilkfor.me我得到“Chrome无法连接到nomilkfor.me”的错误。 […]

docker统计输出与最高输出的关系如何?

我有一个进程在Linux上的Docker容器中运行,有2GB的内存限制。 (容器启动docker run –memory=2g 。) 这是top在运行了一段时间之后所说的。 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9016 root 20 0 7342132 4.652g 4.224g S 100.0 7.4 18828:28 blah 以下是docker stats的输出: CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O d7032e5928b6 100.02% 2.076 GB/2.147 GB 96.68% 345 MB/199.1 MB 然后,重新启动后, top : PID USER […]

Docker多个卷驱动程序

Docker 1.8+可以为一个容器中的不同卷指定不同的卷驱动程序吗? 所以我可以使用一个卷本地存储的默认驱动程序和一个不同的NFS或东西? 除了使用NFS文件夹挂载主机系统。

如果退出0结果,如何退出所有主pipe进程

我与这样的主pipe运行docker集装箱: Dockerfile CMD ["/run.sh"] run.sh #!/usr/bin/env bash exec supervisord -n 主pipe-serf.conf [group:job] programs=serf,producer [program:serf] command=/start-serf-agent.sh numprocs=1 autostart=true autorestart=unexpected stopasgroup=true killasgroup=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 start-serf-agent.sh #!/bin/bash exec serf agent –join=serf:7946 -tag role=producer 主pipe-servce.conf [program:producer] command=/start.sh numprocs=1 stopasgroup=true killasgroup=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 start.sh #!/bin/bash exec /producer –project=${NAME} 制片人停下来之后我得到了: producer_1 | 2016/02/29 21:59:50 [INFO] serf: EventMemberLeave: […]

以机器可读格式读取Docker指标

我为我的用户运行一些Docker容器。 用户可以dynamic地启动和停止他们的容器,所以我想用某种监视系统来监视我的数据空间可用的 docker info度量。 我试图使用Docker API目录 echo -e 'GET /info HTTP/1.0\r\n' | nc -U /var/run/docker.sock | grep '{' | python -m json.tool 但结果是以人类可读的单位返回 – 即。 “16.93 MB”和“9 GB”,这是不适合机器处理。 使用Python Docker API库时会发生同样的情况。 import docker client = docker.Client() print(client.info()['DriverStatus']) 所以问题是:是否有机器可读版本的docker infoparsing出“基本数据空间​​总计”指标?

我的容器的内存在哪里?

我有一个容器泄漏内存。 或者至less,报告的内存消耗快速上升。 如果我跑顶,我得到这个: top – 16:56:51 up 6 days, 17:25, 0 users, load average: 0.16, 0.27, 0.31 Tasks: 4 total, 1 running, 3 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.3 us, 0.7 sy, 0.0 ni, 98.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 7676380 total, 4089380 used, 3587000 free, 675164 buffers […]

如何使conda在Docker容器内使用主机代理

这是情况。 我使用连续/ anaconda3图像的Docker 。 我有服务器(Ubuntu 16.04 LTS)configuration为使用公司代理与CNTLM包。 互联网在主机上通过本地代理工作得很好。 我还修改了cntlm.conf来监听172.17.0.1上的Docker的虚拟networking接口(docker0)。 泊坞窗也正确configuration,我可以拉图像没有问题。 一旦我部署了一个带有Anaconda镜像的容器,并且通过导出envvariableshttp_proxy="http://172.17.0.1:3128"等configuration容器来使用主机代理,我可以使用wget和curl来下载。 问题来自conda 。 我已经按照文档,我也已经导出HTTP_PROXY和HTTPS_PROXYvariables。 这不起作用。 然后我在/root目录下创build了一个.condarc文件: proxy_servers: https: localhost:3128 http: localhost:3128 还试过ssl_verify: False 。 似乎没有任何工作 。 我总是得到以下错误: CondaHTTPError: HTTP None None for url <https://repo.continuum.io/pkgs/free/linux-64/repodata.json.bz2> Elapsed: None An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry […]