Hi, I am trying to use latest vagrant with docker provisioner, on my windows box. My vagrantfile looks like:
Vagrant.configure(2) do |config| config.vm.box = "precise64" config.vm.host_name="localhost" config.vm.provision "docker" do |d| d.pull_images "10.64.249.84:5000/library/batchcontainer:latest", args: "--insecure-registry 10.64.249.84:5000" d.run "library/batchcontainer" end end I need to load the docker image from my private docker registry. The corresponding docker command would be docker pull myuser:[email protected]:5000/library/batchcontainer:latest However, when I try to do "vagrant up" with the above vagrantfile, I get the below error: ==> default: Running provisioner: docker... default: Installing Docker (latest) onto machine... default: Configuring Docker to autostart containers... ==> default: Pulling Docker images... ==> default: -- Image: 10.64.249.84:5000/library/batchcontainer:latest ==> default: stdin: is not a tty ==> default: time="2015-02-25T09:28:33Z" level="fatal" msg="Error: v1 ping attempt failed with error: Get https://10.64.249.84:5000/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 10.64.249.84:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/10.64.249.84:5000/ca.crt" The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! I tried adding the below parameter to the d.run in my vagrantfile, but it doesn't seem to help. As far as I see, the issue is reported during "docker pull" itself, not when "docker run" is issued. args: "--insecure-registry 10.64.249.84:5000" Please help. Thanks & regards Zeba -- 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.
