apt-get no docker atrás do proxy corporativo

Estou tentando configurar um ambiente de desenvolvimento atrás de um servidor proxy corporativo com o Docker. Por mais que eu tente, não consigo fazer com que o contêiner do docker fale com o servidor proxy.

O servidor proxy e o apt-get funcionam bem no host, que é o Ubuntu 12.04

A primeira coisa feita no Dockerfile é tentar configurar as variáveis de proxy:

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

Ele puxa bem a imagem, define as variáveis, mas quando chega ao apt-get update, tenta por um tempo e depois falha com:

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 fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'my.proxy.net'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'my.proxy.net'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'my.proxy.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Essas variáveis que configurei são consistentes com a instalação do host linux (Ubuntu 12.04 no VirtualBox, se isso importa)

Eu também tenho o / etc / default / docker configurado com:

export http_proxy="http://my.proxy.net:8000"
export http_proxy="https://my.proxy.net:8000"

Alguma ideia?

ATUALIZAR:

Parece que este é um problema no DNS, não necessariamente no servidor proxy. O host /etc/resolve.conf contém:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search dhcp.mycompany.com

O host é um virtualbox vm executando em uma caixa com Windows 7, e eu encontrei várias soluções incompletas que geralmente parecem não funcionar. Não importa o que eu tente, não consigo resolver o nome do host do servidor proxy

questionAnswers(4)

yourAnswerToTheQuestion