0
我已經建立了一個形象從這個Dockerfile:泊塢窗未出口的環境變量
FROM jenkins
RUN export http_proxy=http://user:[email protected]:port
#more things
但是,當我在容器輸入(通過的exec /斌/ bash)的,不是出口http_proxy
。
我該怎麼辦?
感謝
我已經建立了一個形象從這個Dockerfile:泊塢窗未出口的環境變量
FROM jenkins
RUN export http_proxy=http://user:[email protected]:port
#more things
但是,當我在容器輸入(通過的exec /斌/ bash)的,不是出口http_proxy
。
我該怎麼辦?
感謝
除非你有使用export
一個具體的理由,多克爾內置了支持在Dockerfile使用environment variables:
ENV http_proxy='http://user:[email protected]:port'
我嘗試過,但沒有奏效。現在,我意識到我使用了錯誤的ENV命令語法。謝謝! –