Docker Community Forums

Share and learn in the Docker community.

Secure Dockerd.exe with linux containers


(Dokoeur) #1

Expected behavior

I would like to secure my docker daemon (linux containers) with tls. I generated the ca and certs, modified the daemon.json file with :

“tls”: true,
“tlscacert”: “server_ca.pem”,
“tlscert”: “server-cert.pem”,
“tlskey”: “server-key.pem”,
“tlsverify”: true

I updated the service with "sc config com.docker.service binpath = "PATH/dockerd.exe - -run-service -H = HOST: 2376 " and restart daemon service

Actual behavior

the engine switch automatically in windows/amd64 arch

Information

Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:21:34 2018
OS/Arch: windows/amd64
Experimental: false

Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:29:02 2018
OS/Arch: windows/amd64
Experimental: true

Any ideas ?

thanks