Hi all!

I have Vagrant and Docker (actually only 
client<https://github.com/Homebrew/homebrew/blob/master/Library/Formula/docker.rb>)
 
installation. And I have a Docker installation on remote linux server (with 
listening host/port):

$ docker ps
2014/05/09 12:43:09 dial unix /var/run/docker.sock: no such file or 
directory
$
$ export DOCKER_HOST=tcp://192.168.42.2:80
$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED         
    STATUS              PORTS               NAMES


Try to use this variable with Docker:

$ DOCKER_HOST=tcp://192.168.42.2:80 vagrant up --provider=docker
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 'mitchellh/boot2docker' could not be found. Attempting to 
find and install...
    default: Box Provider: parallels
    default: Box Version: >= 0
    default: Loading metadata for box 'mitchellh/boot2docker'
    default: URL: https://vagrantcloud.com/mitchellh/boot2docker
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

Name: mitchellh/boot2docker
Address: https://vagrantcloud.com/mitchellh/boot2docker
Requested provider: [:parallels]

 
So, my question is if I can somehow setting up DOCKER_HOST env variable for 
Vagrant for using remote docker?
Or what am I doing wrong?

PS Vagrantfile attached

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.provider "docker" do |d|
    d.image = "centos"
  end

end

Reply via email to