Coder Social home page Coder Social logo

vagrant-docker-example's Introduction

vagrant-docker-example

Example of basic vagrant docker provider usage

Installation

Install vagrant: using http://vagrantup.com/downloads.html

If you are using linux, install docker: http://docs.docker.com/linux/step_one/ On mac and windows, install docker toolbox: https://www.docker.com/toolbox

Clone this repo

From repo folder:

vagrant up

# on mac and windows, you will be asked for a password, enter: tcuser
# you will be asked for password twice for 2 folders to sync

vagrant ssh  # user tcuser password again

# enjoy your docker 'virtual' machine!

vagrant-docker-example's People

Contributors

bubenkoff avatar hvdklauw avatar rllola avatar xsteadfastx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-docker-example's Issues

thanks for making this

I know this isn't the appropriate place to give congratulations ... but I'll do it anyway. I appreciate this existing ... putting the two things together was really some amorphous suggestion as far as the official docs went.

`rsync` problem on `hashicorp/boot2docker` image

When running vagrant up, I'm getting the following error:

โ‡’  vagrant up
Bringing machine 'default' up with 'docker' provider...
==> default: Docker host is required. One will be created if necessary...
    default: Vagrant will now create or start a local VM to act as the Docker
    default: host. You'll see the output of the `vagrant up` for this VM below.
    default:
    default: Box 'hashicorp/boot2docker' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
    default: Loading metadata for box 'hashicorp/boot2docker'
    default: URL: https://atlas.hashicorp.com/hashicorp/boot2docker
    default: Adding box 'hashicorp/boot2docker' (v1.7.8) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/hashicorp/boxes/boot2docker/versions/1.7.8/providers/virtualbox.box
    default: Successfully added box 'hashicorp/boot2docker' (v1.7.8) for 'virtualbox'!
    default: Importing base box 'hashicorp/boot2docker'...
    default: Matching MAC address for NAT networking...
    default: Checking if box 'hashicorp/boot2docker' is up to date...
    default: Setting the name of the VM: docker-host_default_1445575971327_33001
    default: Clearing any previously set network interfaces...
    default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Forwarding ports...
    default: 2375 => 2375 (adapter 1)
    default: 22 => 2222 (adapter 1)
    default: Running 'pre-boot' VM customizations...
    default: Booting VM...
    default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: docker
    default: SSH auth method: password
    default: Warning: Connection timeout. Retrying...
    default: Machine booted and ready!
==> default: Syncing folders to the host VM...
    default: Installing rsync to the VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

rsync --help

Stdout from the command:



Stderr from the command:

sh: rsync: not found

Seems like rsync has been removed from hashicorp/boot2docker image.

The solution is to use dduportal/boot2docker as http://stackoverflow.com/questions/31694350/vagrant-with-docker-provider-fails-with-rsync-over-ssh

Pull Request to follow.

Docker link in the README is a dead end

Hi there - the link for the Docker install on your README goes to a 404-style page that says: "Ain't nothing here, best you mosey along."

Can you either update the README with the correct/supported Docker installation link, or point me in the right direction?

I know I could just Google "install Docker" but the reason why I found your project here is that I previously had Vagrant and Docker installed on my Mac, but the Docker installation seemed to hose my Vagrant/VirtualBox connection (here's the related StackOverflow question). I ended up just uninstalling both Vagrant and Docker, and so now I'm trying again.

If you've figured out how to get Vagrant and Docker working together, I'll just piggyback off of your hard work (!), which is why I'm asking for the specific Docker installation link that your Vagrantfile will work with.

Thanks!

Vagrant version in Vagrantfile ?

I propose to add in the Vagrantfile this line :

Vagrant.require_version ">= 1.6.0"

To be sure that the user have the latest version of Vagrant that allow to use 'docker'.

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.