From 7eecf31faacd3d0465f0138b4c249a2be1b277a7 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Thu, 15 May 2014 20:13:45 -0300 Subject: [PATCH] providers/docker: Fix SSH access to container when no Host VM is in use [GH-3799] --- plugins/providers/docker/provider.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/providers/docker/provider.rb b/plugins/providers/docker/provider.rb index 3ec281661..28d5b9967 100644 --- a/plugins/providers/docker/provider.rb +++ b/plugins/providers/docker/provider.rb @@ -136,7 +136,10 @@ module VagrantPlugins # here and we let Vagrant core deal with it ;) return nil if !ip - { host: ip } + { + host: ip, + port: @machine.config.ssh.guest_port + } end def state