Unable to configure http proxy in Docker

Hi,

I have installed docker on Oracle Linux 7.3.Client:
Docker version -
Version: 17.03.1-ee-3
API version: 1.27
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 20:32:38 2017
OS/Arch: linux/amd64

Server:
Version: 17.03.1-ee-3
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: 3fcee33
Built: Thu Mar 30 20:32:38 2017
OS/Arch: linux/amd64
Experimental: false
Now my machine is behind corporate proxy which has NTML authentication. For that I have installed CNTML and I am able to successfully connect to internet using curl/wget but when I am trying to steps mentioned in doc - https://docs.docker.com/engine/admin/systemd/#custom-docker-daemon-options. But when I restarted docker I get the message - systemd: [/etc/systemd/system/docker.service.d/http-proxy.conf:1] Assignment outside of section. Ignoring. and hence I am not able to run docker hello world from docker repository. Please help.

Thanks.

Getting this error - Unable to find image ‘hello-world:latest’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:48418->[::1]:53: read: connection refused.

Thanks.