Tag: apt get

Docker Debian apt从服务器读取错误

看起来,apt-get存在与存储库服务器连接的问题。 我想这可能是兼容性问题,正如这里所提到的,然而,提出的apt-get clean解决scheme对我来说并不适用。 另外我很惊讶,如果是这样的话,没有更多的人有我的问题。 MWE Dockerfile FROM debian:jessie RUN apt-get clean && apt-get update && apt-get install -y –no-install-recommends \ git $ docker build . docker build . Sending build context to Docker daemon 2.048 kB Step 0 : FROM debian:jessie —> 4a5e6db8c069 Step 1 : RUN apt-get clean && apt-get update && apt-get install […]

在Docker中,Debian httpredir镜像系统不可靠/不可用?

简洁版本 Debian的httpredir.debian.org镜像服务会导致我的Docker构build失败,因为apt-get无法下载包或连接到服务器或类似的东西。 我是唯一有这个问题的人吗? 问题是我的,Debian的还是Docker的? 有什么我可以做的吗? 长版本 我有几个build立在debian:jessie上的Dockerfiles debian:jessie ,Debian默认使用httpredir.debian.org服务来find使用apt-get时最好的镜像。几个月前,httpredir在试图构build图像时给了我不断的悲伤。 当在Dockerfile中运行时,使用httpredir的apt-get几乎总是会在一两个软件包上搞砸,整个构build会失败。 通常看起来像一面镜子的错误在某种程度上已经过时或腐败了。 我最终通过添加以下几行来停止在我所有的Docker文件中使用httpredir: # don't use httpredir.debian.org mirror as it's very unreliable RUN echo deb http://ftp.us.debian.org/debian jessie main > /etc/apt/sources.list 今天又回到尝试httpredir.debian.org了,因为ftp.us.debian.org已经过时了我需要的一个软件包,果然在Docker Hub上失败了: Failed to fetch http://httpredir.debian.org/debian/pool/main/n/node-retry/node-retry_0.6.0-1_all.deb Error reading from server. Remote end closed connection [IP: 128.31.0.66 80] E: Unable to fetch some archives, maybe run apt-get […]

apt-get在Docker后面的公司代理

我试图在Docker的企业代理服务器背后设置一个开发环境。 尽可能地尝试,我不能让docker集装箱与代理服务器交谈。 代理服务器和apt-get在主机上运行良好,即Ubuntu 12.04 Dockerfile中的第一件事是尝试设置代理variables: FROM ubuntu RUN echo 'Acquire::http { Proxy "http://my.proxy.net:8000"; };' >> /etc/apt/apt.conf.d/01proxy ENV HTTP_PROXY http://my.proxy.net:8000 ENV http_proxy http://my.proxy.net:8000 ENV HTTPS_PROXY https://my.proxy.net:8000 ENV https_proxy https://my.proxy.net:8000 RUN apt-get update && apt-get install -y build-essential 它拉好图像,设置variables,但是当它进入apt-get更新,它会尝试一会儿,然后失败: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/InRelease W: Failed to […]

dockerbuild设没有networking,但docker运行

如果我想构build我的Dockerfile,它不能连接到networking或至lessDNS: Sending build context to Docker daemon 15.95 MB Sending build context to Docker daemon Step 0 : FROM ruby —> eeb85dfaa855 Step 1 : RUN apt-get update -qq && apt-get install -y build-essential libpq-dev —> Running in ec8cbd41bcff W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease W: […]

Docker不想将vim安装到我的容器映像中

在我的Dockerfile我有一行: RUN apt-get -qq update && apt-get install -y -qq –no-install-recommends vim Docker在构build容器映像时运行它: $ docker build . Sending build context to Docker daemon 31.74 kB Step 1 : FROM node —> 2647b0da972f Step 2 : MAINTAINER jillix <support@jillix.com> —> Using cache —> 06aad06901af Step 3 : ENV DEBIAN_FRONTEND noninteractive —> Using cache —> d4f2c77d2fa1 Step […]

Docker构build冻结从apt安装软件包

我有一个dockerfile需要从apt安装720mb的软件包。 run DEBIAN_FRONTEND=noninteractive apt-get install -y python-pip python-dev\ supervisor mercurial subversion buildbot buildbot-slave subversion doxygen\ cmake cloc build-essential valgrind cccc scons g++ cppcheck qt4-dev-tools\ wget lcov graphviz 构build运行几乎所需的一半的包,然后它挂在那里闲置。 有没有一种方法可以肯定地知道这个过程是否已经停止,或者只是空闲的等待networking或者这些线路?

在apt-get升级过程中防止Docker-Engine重启

我在Ubuntu 14.04上遇到了一个问题 每当我进行apt-get升级时,如果docker-engine有资格进行升级,它将在升级后重新启动服务。 这会导致容器重新启动。 其中一个容器是在启动过程中需要手动干预的容器,另一个容器是收集时间关键的数据,因此只有在特定时间才需要重新启动容器。 如何从这些自动重新启动中排除泊坞窗引擎服务? 例如,AFAIK,mongodb在apt-get升级后不会重启mongod,为什么docker的行为不一样?