You can do this with the docker-machine env . For instance:
$ eval "$(docker-machine env <machine-name>)"
This will set the environment variables that the Docker client will read, which sets the TLS settings. Please note that you will need to do this every time you open a new tab or restart the computer.
To find out what will be installed, run docker-machine env
$ docker-machine env <machine-name> export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://172.16.62.130:2376" export DOCKER_CERT_PATH="/Users/<your username>/.docker/machine/machines/dev" export DOCKER_MACHINE_NAME="dev"
source share