apache-Docker消息:由于来自服务器/代理的错误响应,自动禁用Acquire :: http :: Pipeline-Depth

将apache2安装到Docker的Ubuntu 16.04映像中,我得到以下消息

W: http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm3_1.8.3-13.1_amd64.deb: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf).

那就是Dockerfile:

FROM ubuntu:16.04

#RUN apt-get update
#https://github.com/phusion/baseimage-docker/issues/319
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils 
RUN apt-get install -y apache2

当我打开图像时,我看到了/ var / www / html文件夹,即安装了apache.

那是什么信息?是错误还是我可以认为apache已完全安装?

最佳答案
流水线是HTTP / 1.1协议的功能.从RFC 7230开始:

A client that supports persistent connections MAY “pipeline” its
requests (i.e.,send multiple requests without waiting for each
response). A server MAY process a sequence of pipelined requests in
parallel if they all have safe methods (Section 4.2.1 of [RFC7231]),
but it MUST send the corresponding responses in the same order that
the requests were received.

可以通过设置Acquire :: http :: Pipeline-Depth激活此功能.从man apt.conf开始:

The setting Acquire::http::Pipeline-Depth can be used to enable HTTP pipelining (RFC 2616 section 8.1.2.2) which can be beneficial e.g. on high-latency connections. It specifies how many requests are sent in a pipeline. APT tries to detect and workaround misbehaving webservers and proxies at runtime,but if you know that yours does not conform to the HTTP/1.1 specification pipelining can be disabled by setting the value to 0. It is enabled by default with the value 10.

您看到的消息表示您与apt信息库的连接不支持管道传输(可能是由于某种代理),并且apt自动禁用了此功能.安装可能会花费更多时间,但是您可以认为apache服务器已完全安装.

相关文章

文章浏览阅读8.8k次,点赞2次,收藏7次。本文介绍Docker Com...
文章浏览阅读1.5w次,点赞7次,收藏76次。原网提供的教程需要...
文章浏览阅读940次,点赞20次,收藏20次。通过 docker run 命...
文章浏览阅读1k次,点赞20次,收藏20次。Podman 是一个开源的...
文章浏览阅读2.1k次。请注意,这些命令需要在 Docker 主机上...
文章浏览阅读1.1k次,点赞37次,收藏40次。nacos搭建集群连接...