mitchellh / boot2docker-vagrant-box

Packer scripts to build a Vagrant-compatible boot2docker box.
424 stars 183 forks source link

Move to boot2docker 1.3 #65

Closed lcamacho closed 9 years ago

lcamacho commented 9 years ago

According to http://blog.docker.com/2014/10/docker-1-3-signed-images-process-injection-security-options-mac-shared-directories/ this new version mount /Users for OSX, plus exec command and more.

miketheman commented 9 years ago

:+1:

sennerholm commented 9 years ago

As I read the code it's only to change:

B2D_URL="https://github.com/boot2docker/boot2docker/releases/download/v1.2.0/boot2docker.iso"

to

https://github.com/boot2docker/boot2docker/releases/download/v1.3.0/boot2docker.iso

in build-iso.sh.

And build it, but I have newer built a box before :-)

lcamacho commented 9 years ago

I did the same but as soon as vagrant try to connect to this new image it keeps saying that it can't connect, maybe because this version of docker uses some kind of security to be able to connect.

sennerholm commented 9 years ago

Hmm, that's an ssh connection if I remember it right, something wrong with the password? If I remember it right packer sets it.

lcamacho commented 9 years ago

When you start boot2docker 1.3 it recommends you to set this in your enviroment to be able to connect: export DOCKER_TLS_VERIFY=1 export DOCKER_HOST=tcp://192.168.59.103:2376 export DOCKER_CERT_PATH=/Users/user/.boot2docker/certs/boot2docker-vm

I dont know if theres a way to set this in vagrant or maybe the way to go is disabling TLS all together

sennerholm commented 9 years ago

Those variables shouldn't affect the ssl connection to the boot2docker vm. Trying to set up the same stuff on my laptop, but it takes some time on a train.

sennerholm commented 9 years ago

Hi

Icamacho, I got it working, try my diffs in #66 and let me know if it works for you.

Sincerely Mikael

sennerholm commented 9 years ago

I can't find an updated box when I try with

vagrant box update --box mitchellh/boot2docker

Do you need to do a release for making it aviable? I have added the box I built to dropbox and it's aviable with:

config.vm.box = "sennerholm/boot2docker" config.vm.box_url = "https://dl.dropboxusercontent.com/u/6816236/boot2docker_virtualbox.box"

Sincerely Mikael