Docker toolbox docker-machine change proxy settings

Last time I posted way to set proxy into docker-machine.

But as we need to change the corporate password once couple months, we need to change the proxy settings as they have password encoded in URL.

We know that docker machine configuration is to set it into /var/lib/boot2docker/profile file.

but changing the file on the fly or export it doesn’t seem to fix the problem.

 

so it might be to launch time configuration, so we should update the config.json file under your ${DOCKER_MACHINE_DIR}/default/config.json.

update your previously configured proxy in there should allow docker-machine to use new proxy settings.

Leave Comment

Your email address will not be published. Required fields are marked *