Proxy

docker - 找不到包(兩台伺服器具有相同的設置,除了版本)

  • February 17, 2016

較新的 Docker 是否有不同的源列表或其他東西?

a# docker --version
Docker version 1.10.1, build 9e83765

b# docker --version
Docker version 1.9.1, build a34a1d5

安裝通過舊的而不是新的。

"
E: Unable to locate package supervisor
E: Unable to locate package python-pystache
"

這是兩者的基本 Dockerfile:

# cat Dockerfile
FROM ubuntu:14.04
ENV http_proxy 'http://proxy.us.wsa.com:80'
ENV https_proxy 'http://proxy.us.wsa.com:80'
ENV HTTP_PROXY 'http://proxy.us.wsa.com:80'
ENV HTTPS_PROXY 'http://proxy.us.wsa.com:80'
ENV DEBIAN_FRONTEND noninteractive 
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

COPY apt.conf /etc/apt/apt.conf
RUN apt-get -y update
RUN apt-get install -y vim supervisor python2.7 openjdk-7-jdk python-pystache make

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]

伺服器 a 和 b 都具有相同的代理設置,/etc/environment等等/etc/default/docker

像其他人建議的那樣在下面嘗試:

"
RUN add-apt-repository main
RUN add-apt-repository universe
RUN add-apt-repository restricted
RUN add-apt-repository multivers
"

但是“ sudo: add-apt-repository: command not found

這裡沒有線索。

謝謝,再一次。

“邁克爾·漢普頓”是正確的。在尋求穩定性時,請始終遠離流血的邊緣。

a# docker --version
Docker version 1.9.1, build a34a1d5

一切都好。

Selecting previously unselected package libgraphite2-3:amd64.
Preparing to unpack .../libgraphite2-3_1.2.4-1ubuntu1.1_amd64.deb ...
Unpacking libgraphite2-3:amd64 (1.2.4-1ubuntu1.1) ...
Selecting previously unselected package libharfbuzz0b:amd64.
Preparing to unpack .../libharfbuzz0b_0.9.27-1ubuntu1_amd64.deb ...
Unpacking libharfbuzz0b:amd64 (0.9.27-1ubuntu1) ...
Selecting previously unselected package libpangoft2-1.0-0:amd64.
Preparing to unpack .../libpangoft2-1.0-0_1.36.3-1ubuntu1.1_amd64.deb ...
Unpacking libpangoft2-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...
Selecting previously unselected package libpangocairo-1.0-0:amd64.
Preparing to unpack .../libpangocairo-1.0-0_1.36.3-1ubuntu1.1_amd64.deb ...
Unpacking libpangocairo-1.0-0:amd64 (1.36.3-1ubuntu1.1) ...

如果人們想知道,這些是安裝特定版本 Docker 的簡單步驟。有時,當它抱怨現有依賴項時,請在降級/升級之前手動刪除該單個依賴項。

 274  sudo apt-get remove -y docker-engine
 286  wget https://get.docker.io/ | DOCKER_VERSION=1.9.1 sh --proxy=on
 287  history | grep docker
 288  ls
 289  apt-get install -y docker-engine=1.9.1
 290  exit

引用自:https://serverfault.com/questions/757863