Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

docker-machine restart overwites /var/lib/boot2docker/profile #1798

Closed
oobles opened this issue Sep 3, 2015 · 3 comments
Closed

docker-machine restart overwites /var/lib/boot2docker/profile #1798

oobles opened this issue Sep 3, 2015 · 3 comments

Comments

@oobles
Copy link

oobles commented Sep 3, 2015

Just installed DockerToolbox 1.8.1c (docker-machine 0.4.1(e2c88d6) and boot2docker version 1.8.1 (build 7f12e95)) on OSX. After making a change in /var/lib/boot2docker/profile and restarting the machine the changes in profile are overwritten. Creating a new file /var/lib/boot2docker/bootlocal.sh changes are not overwritten.

@oobles
Copy link
Author

oobles commented Sep 6, 2015

After a few more tests found that docker-machine env command overwrites profile and also updates certificates.

I'd like to update profile to add HTTP_PROXY and HTTPS_PROXY, but every time "Docker Quickstart Terminal" is started the profile settings are overwritten. I'd also like to update the certificates used by docker. Is there another way to configure docker daemon that will not be overwritten by "docker-machine env"?

@oobles
Copy link
Author

oobles commented Sep 7, 2015

After more investigation found that currently profile is updated by design by "docker-machine env". The only way to update this is during "docker-machine create" using engine-env commands. Using this it is possible to update HTTP_PROXY and HTTPS_PROXY. eg.

docker-machine create -d virtualbox --engine-env HTTP_PROXY=http://:@: --engine-env HTTPS_PROXY=http://:@: default

I'm yet to find a way to use other certificates, but will open another issue for that.

@anouarIT
Copy link

anouarIT commented Feb 7, 2017

Hello, it's the first time that i work with docker and i don't have any idea where i find this path ?
the root dierectry i mean :/
some help please !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants