Docker Community Forums

Share and learn in the Docker community.

--add-host doesn't work


(Punelc) #1

Expected behavior

add an entry into the host file

Actual behavior

doesn’t work, hosts file is the windows-base file

Information

docker-info:

Server Version: 1.13.0-rc5
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 14393 (14393.576.amd64fre.rs1_release_inmarket.161208-2252)
Operating System: Windows 10 Enterprise
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 15.9 GiB


(Aemery) #2

Still having this issue with the current stable version.

$ docker version
Client:
Version: 17.09.1-ce
API version: 1.32
Go version: go1.8.3
Git commit: 19e2cf6
Built: Thu Dec 7 22:22:26 2017
OS/Arch: windows/amd64

Server:
Version: 17.09.1-ce
API version: 1.32 (minimum version 1.24)
Go version: go1.8.3
Git commit: 19e2cf6
Built: Thu Dec 7 22:32:40 2017
OS/Arch: windows/amd64
Experimental: true