I setup a Vagrant VM that contains Docker
Vagrant.configure("2") do |config|
config.vm.define "node1" do |node1|
node1.vm.box = "ubuntu/xenial64"
node1.vm.provision :shell, path: "../docker-installation.sh"
node1.vm.network "private_network", ip: "192.168.33.10"
end
end
I also installed Docker on my host machine and from there I like to call Docker inside the VM.
My first attempt was to do it like this:
docker -H 192.168.33.10 info
However, this outputs this message:
Cannot connect to the Docker daemon at tcp://192.168.33.10:2375. Is the docker daemon running?
I guess this is a problem with the connection itselfs as the docker daemon is running. I assume SSH has to be configured.
How I have to configure the Docker client on my host as I can connect to the Docker daemon in my Vagrant VM?