I'm trying to deploy a simple httpd server with docker and Vagrant to get around the file permission issue with the virtualbox shared folders (I'm using rsync with vagrant, and running Windows as the host)
when I run vagrant up
, the VM starts (I can confirm that with the VBox GUI) but then vagrant warns that no SSH connection can be established with the VM and the container is never loaded.
Here it the output of the 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: Checking if box 'mitchellh/boot2docker' is up to date...
default: VirtualBox VM is already running.
The Docker provider was able to bring up the host VM successfully
but the host VM is still reporting that SSH is unavailable. This
sometimes happens with certain providers due to bugs in the
underlying hypervisor, and can be fixed with a `vagrant reload`.
The ID for the host VM is shown below for convenience.
If this does not fix it, please verify that the host VM provider
is functional and properly configured.
Host VM ID: c89c99f7-0bb5-45ed-80c9-5dc256259366
and the warning message I get if I run vagrant reload
or vagrant ssh
:
==> default: The container hasn't been created yet.
Here is my Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.provider "docker" do |d|
d.build_dir = "."
ports = ["80:80"]
end
end
Is there something I'm missing?
thanks!