Giter VIP home page Giter VIP logo

Comments (8)

caseywebdev avatar caseywebdev commented on July 22, 2024

👍

from boot2docker-vagrant-box.

yurtaev avatar yurtaev commented on July 22, 2024

👍

from boot2docker-vagrant-box.

zfogg avatar zfogg commented on July 22, 2024

My team works with Docker regularly so, I keep an up-to-date fork of this project :) feel free to use it in the meantime

https://github.com/wearableintelligence/boot2docker-vagrant-box/releases/tag/docker%2Fv1.7.0

(sorry to @Parallels for the cheeky Github release naming scheme :P heh)

from boot2docker-vagrant-box.

legal90 avatar legal90 commented on July 22, 2024

Guys, sorry for so long delay, I had to spend some time to renew our scripts and template.
I've just prepared a pre-release version of parallels/boot2docker box v1.7.0 with some significant changes:
https://github.com/Parallels/boot2docker-vagrant-box/releases/tag/parallels%2Fv1.7.0

Usage information was also updated: https://github.com/Parallels/boot2docker-vagrant-box#usage

@hadronzoo @yurtaev @caseywebdev @zfogg Could you please verify it on your cases?
Since I don't use Docker regularly, I'd like to get a feedback about these changes:

TLS is enabled by default. Certificates are syncing automatically to the ./tls/ directory on every vagrant up.

  1. Is it OK that TLS certs is always syncing automatically? It is implemented via shell provision in the box's Vagrantfile (https://github.com/Parallels/boot2docker-vagrant-box/blob/parallels/vagrantfile.tpl#L32-L33)

  2. Usage info contains this advice for setting environment variables:

export DOCKER_TLS_VERIFY="1"
export DOCKER_CERT_PATH="`pwd`/tls"
export DOCKER_HOST="tcp://`vagrant ssh-config | sed -n "s/[ ]*HostName[ ]*//gp"`:2376"

Obviously, these commands should be executed in the same directory where vagrant up was executed. Is it acceptable to your use case? Or do you use some other ways to fetch these values?

from boot2docker-vagrant-box.

legal90 avatar legal90 commented on July 22, 2024

It could be tested with:

vagrant box add parallels-test-b2d https://github.com/Parallels/boot2docker-vagrant-box/releases/download/parallels%2Fv1.7.0/boot2docker-parallels.box
vagrant init parallels-test-b2d
vagrant up

from boot2docker-vagrant-box.

hadronzoo avatar hadronzoo commented on July 22, 2024

Thank you for the update. Is there a reason to enable TLS for this use case? It doesn't seem worth the added complexity and overhead IMO.

from boot2docker-vagrant-box.

legal90 avatar legal90 commented on July 22, 2024

Thank you for the update. Is there a reason to enable TLS for this use case? It doesn't seem worth the added complexity and overhead IMO.

@hadronzoo Yes, it looks complicated, but TLS is enabled by default on the server side of boot2docker starting since version 1.3.0. So, most likely users expect that Docker server is running with TLS and it is listening the port 2376.

However, seems like automatic certificate syncing to ./tls/ trough the "shell" provisioner is not a good idea. This approach will not work in case of multi-machine configuration in single Vagrantfile. I think it will be better to remove this provision step and add instruction to to README.md about manual certificate syncing.

Also, I think it will be useful to mention in README.md tip how to disable TLS on the server side. It's quite simple:

vagrant ssh -c "sudo sh -c 'echo \"export DOCKER_TLS=no\" > /var/lib/boot2docker/profile'"
vagrant reload

After that it will be possible to work with unsecure connection:

export DOCKER_TLS_VERIFY="0"
export DOCKER_HOST="tcp://`vagrant ssh-config | sed -n "s/[ ]*HostName[ ]*//gp"`:2375" 

Any suggestions? How many people are really need for TLS for Docker on their vagrant machines? Wondering, how do they sync certificates now.

from boot2docker-vagrant-box.

legal90 avatar legal90 commented on July 22, 2024

"Better late than never". Finally, it's released now: v1.7.0
And published on Atlas as well: https://atlas.hashicorp.com/parallels/boxes/boot2docker/versions/1.7.0

The upcoming v1.7.1 version will be released much faster :)

from boot2docker-vagrant-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.