hello, if the host doesn't have/cant run docket, I understand by default will run a boot2docker instance, to run docker inside.
as you are on arch linux, this should not be the case. Can you try this part without '/' myproject/base ? On Thu, May 15, 2014 at 8:07 PM, Alper Ortac <alpor...@gmail.com> wrote: > My OS: Arch Linux 64 Bit. > > I have the following directory structure for a Vagrant box: > > | vagrant > | - docker > | - | - base > | - | - extension > | - shared > | - | - for > | - | - bar > > The base container gets built at the beginning and the extensioncontainer > uses that as a starting point. Both containers use files from the > shared folder to ADD them in the Dockerfile. > > Here is my first attempt to create a Vagrantfile: > > # -*- mode: ruby -*- > # vi: set ft=ruby : > > VAGRANTFILE_API_VERSION = "2" > > Vagrant.configure("2") do |config| > config.vm.synced_folder ".", "/vagrant1" > > config.vm.define "myproject/base" do |v| > v.vm.synced_folder ".", "/vagrant2" > v.vm.synced_folder ".", "/vagrant3", docker__exact: true > > v.vm.provider "docker" do |d| > d.build_dir = "./docker" > end > > v.vm.provision "shell", inline: "echo Hello" > end > end > > It's only one docker container and some shared folders just to test if > they are accessible from the Dockerfile: > > FROM ubuntu:precise > RUN ls -la / > ADD /vagrant1/ /docker/ > #ADD /vagrant2/ /docker/ > #ADD /vagrant3/ /docker/ > CMD ["/bin/bash"] > > > Running vagrant up --provider=docker shows the root folder without any > shared vagrant folders and leads to an error when trying to ADD one of the > folders. > > I suspect boot2docker to be the problem which is used by default to create > the vm. Since i'd like to use this setup in production too, i would prefer > not to force a heavy vm as a wrapper. But first, i'd like to know what i am > doing wrong. Can you help me? > > -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.