apt-get en docker detrás del proxy corporativo

Estoy intentando configurar un entorno de desarrollo detrás de un servidor proxy corporativo con Docker. Por más que lo intenté, no consigo que el contenedor acoplable hable con el servidor proxy.

El servidor proxy y apt-get funcionan bien en el host, que es Ubuntu 12.04

Lo primero que se hace en el Dockerfile es intentar configurar las variables 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

Tira de la imagen bien, establece las variables, pero cuando llega a apt-get update, lo intenta por un momento y luego falla con:

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.

Estas variables que he configurado son consistentes con la instalación de Linux del host (Ubuntu 12.04 en VirtualBox, si eso importa)

También tengo / etc / default / docker configurado con:

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

¿Alguna idea?

ACTUALIZAR:

Parece que este es un problema con DNS, no necesariamente con el servidor proxy. El host /etc/resolve.conf contiene:

# 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

El host es un virtualbox vm que se ejecuta en una caja de Windows 7, y he encontrado varias soluciones a medias que en su mayoría parecen no funcionar. No importa lo que intente, no puedo hacer que resuelva el nombre de host del servidor proxy

Respuestas a la pregunta(4)

Su respuesta a la pregunta