-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Description
Description
Predefined ARG HTTP_PROXY and HTTPS_PROXY are persisting in the resulting image. Security risk if proxy requires username and password.
Steps to reproduce the issue:
- docker build using --build-arg HTTP_PROXY=http://username:password@proxy.thing.com:8080/
- docker run -ti
Describe the results you received:
$ echo $HTTP_PROXY
http://username:password@proxy.thing.com:8080/
Describe the results you expected:
$ echo $HTTP_PROXY
Additional information you deem important (e.g. issue happens only occasionally):
Repeatable
Output of docker version:
$ docker version
Client:
Version: 1.13.0
API version: 1.25
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: windows/amd64
Server:
Version: 1.13.0
API version: 1.25 (minimum version 1.12)
Go version: go1.7.3
Git commit: 49bf474
Built: Wed Jan 18 16:20:26 2017
OS/Arch: linux/amd64
Experimental: true
Output of docker info:
$ docker info
Containers: 13
Running: 0
Paused: 0
Stopped: 13
Images: 4
Server Version: 1.13.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 55
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.4-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 2.669 GiB
Name: moby
ID: ZQNT:ZJL4:KAGX:4RUB:ZLRE:XY72:MNHL:FJYD:AQSO:XPLY:O7EV:LXZZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: <removed>
Https Proxy: <removed>
No Proxy: <removed>
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.):
Running Docker for Windows