boot2docker / osx-installer

Docker installer for Mac OS X
Apache License 2.0
1.25k stars 258 forks source link

Auto init, start and set the env all in one #60

Closed SvenDowideit closed 7 years ago

SvenDowideit commented 9 years ago

wip - need to add it to the installer, call it, and test.

also implements https://github.com/boot2docker/boot2docker/issues/85

bfirsh commented 9 years ago

Cool! We can add hostnames on OS X using dscl:

https://tomafro.net/2009/07/dscl-the-easy-way-to-add-hosts-on-osx

Means we don't have to grep over /etc/hosts :)

SvenDowideit commented 9 years ago

nice!

SvenDowideit commented 9 years ago

@bfirsh looks like OSX wants you to stop: http://superuser.com/questions/565154/creating-hostsname-aliases-through-dscl-does-not-work-in-mountain-lion

dscl was broken for this use a while back.

bfirsh commented 9 years ago

Damn, that's a shame.

SvenDowideit commented 9 years ago

agreed. This PR should really be continued to extract the startup shell code from the app, so the app can focus on just providing the GUI wrapper.

SvenDowideit commented 9 years ago

pushed to 1.4 - and should be built on top of #65, which does the extraction i mentioned