I've a VMware machine with linux mint 18.3 on it (the host machine is a windows 10). The host machine is behind a proxy. The guest machine (linux mint) network is configured as "Bridged"?
I try to write a simple Dockerfile on the guest OS and build it but have issues with apt-get command:
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y \
bzip2 \
g++ \
make \
ncurses-dev \
wget \
zlib1g-dev
It gives me:
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'security.ubuntu.com'
I tried adding in the Dockerfile:
ENV http_proxy 'http://proxy_adress:3128'
ENV https_proxy 'http://proxy_adress:3128'
and got this error:
Err:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Temporary failure resolving 'proxy_adress'
Do I have to change something in the VMware configuration? or in the Dockerfile?
Thanks