Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Replace Ubuntu with boot2docker. #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cameronmaske
Copy link

Hi!

I was able to replace the Ubuntu VM with boot2docker (related to #17).

This was possible due to two things...

  • A recently added workaround to allow shared folders. Using this you can mount HOME on boot2docker to allow for that lovely transparent volume usage!
  • This pull request to provide a fixed ip (a.k.a localdocker) between host and guest (which I rebased on the latest master)

This also removed the need for Vagrant (#26) as you can just use Virtual Box to mount the shared folder!

Sadly, there are a few issues...

  1. boot2docker ssh requires a password. You need to ssh into boot2docker to mount the shared folder on the host. My workaround is to prompt the user with Enter the password 'tcuser' below to mount folders to Docker Virtual Machine. Unless docker-osx destroy is called, this is a one time thing This needs to be done once after starting the VM. There is Streamline SSH access in two lines boot2docker/boot2docker#192 which could be a possible solution.
  2. The shared folder PR isn't yet merged in, and required a custom ISO to be downloaded. Currently hosted an Dropbox.
  3. The logic too set DOCKER_IP lives with the boot2docker script. My PR removes the ability to re-configure it.
  4. You can no longer control the version of docker installed. It relies entirely on the custom ISO mentioned above (v0.9).
  5. The previous localdocker ip of 172.16.42.43 doesn't work with the patched boot2docker. I'm not sure why! Any listings in /etc/hosts for localdocker should be removed before installing the above.

For me, those work around suit my use case of docker.
I think 2 + 3 could possible be improved by vendoring boot2docker script + iso into docker-osx repo.

Here is a terminal recording to get an idea of performance vs vagrant + ubuntu + proof it works :)

Interested to hear thoughts around this!

Setup HOME directory mounting using this [workaround](boot2docker/boot2docker#284).
Uses an forked boot2docker shell script (based on boot2docker/boot2docker#93) but fast forward to the latest master to allow a fixed ip address for guest and host (aka localdocker).
Removed Vagrant, VM is managed by VirtualBox alone.
@mattes
Copy link

mattes commented Apr 12, 2014

👍

1 similar comment
@artofhuman
Copy link

👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants