#Create docker machine
create docker machine with the following options
docker-machine create --driver "virtualbox" --engine-insecure-registry "" --engine-opt "http_proxy=$http_proxy" --engine-opt "https_proxy=$https_proxy" --engine-opt "no_proxy=$no_proxy" default
create the machine using default configuration. Then later modify the /var/lib/boot2docker/profile and then restart docker daemon
EXTRA_ARGS='
--label provider=virtualbox
--insecure-registry ossa.docker.oraclecorp.com
'
CACERT=/var/lib/boot2docker/ca.pem
DOCKER_HOST='-H tcp://0.0.0.0:2376'
DOCKER_STORAGE=aufs
DOCKER_TLS=auto
SERVERKEY=/var/lib/boot2docker/server-key.pem
SERVERCERT=/var/lib/boot2docker/server.pem
export HTTP_PROXY="http://www-proxy.us.oracle.com:80"
export HTTPS_PROXY="http://www-proxy.us.oracle.com:80"
export NO_PROXY="localhost,127.0.0.1,*.oracle.com,*.oraclecorp.com"
#Connect to docker machine
eval $(docker-machine env default)
NO_PROXY="$(docker-machine ip default),$NO_PROXY" docker --tlsverify=false info