From 34247fdb364f399707422d8fe2d7ea91efe1f7dd Mon Sep 17 00:00:00 2001 From: ChantYuCN Date: Mon, 20 Jun 2022 06:26:26 +0000 Subject: [PATCH] fix: Add the variable no_proxy into dockerfile If set a http_proxy in container, it should add a no_proxy. Otherwise, system can't curl 127.0.0.1:443 Closes-Bug: #1979174 Signed-off-by: ChantYuCN Change-Id: I0189171df6d955ffccd62d358ce38e556394f6ce --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 354137d3..fc674dbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,10 +19,11 @@ FROM centos:7.8.2003 #ENV http_proxy "http://your.actual_http_proxy.com:your_port" #ENV https_proxy "https://your.actual_https_proxy.com:your_port" #ENV ftp_proxy "http://your.actual_ftp_proxy.com:your_port" +#ENV no_proxy "localhost,127.0.0.1" #RUN echo "proxy=$http_proxy" >> /etc/yum.conf && \ # echo -e "export http_proxy=$http_proxy\nexport https_proxy=$https_proxy\n\ -#export ftp_proxy=$ftp_proxy" >> /root/.bashrc +#export ftp_proxy=$ftp_proxy\nexport no_proxy=$no_proxy" >> /root/.bashrc # username you will docker exec into the container as. # It should NOT be your host username so you can easily tell