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.run "library/batchcontainer"
end
I need to load the docker image from my private docker registry. The corresponding docker command would be
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: 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.
Please help.
Thanks & regards
Zeba