providers/docker: read the container ID properly

This commit is contained in:
Mitchell Hashimoto 2014-10-22 09:33:57 -07:00
parent 7ccec33460
commit 57a1269e35
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ BUG FIXES:
- providers/docker: Images built using `build\_dir` will more robustly
capture the final image. [GH-4598]
- providers/docker: NFS synced folders now work. [GH-4344]
- providers/docker: Read the created container ID more robustly.
- providers/virtualbox: Show a human-friendly error if VirtualBox didn't
clean up an existing VM. [GH-4681]
- provisioners/docker: Search for docker binary in multiple places. [GH-4580]

View File

@ -53,7 +53,7 @@ module VagrantPlugins
run_cmd += params[:extra_args] if params[:extra_args]
run_cmd += [image, cmd]
execute(*run_cmd.flatten, **opts, &block).chomp
execute(*run_cmd.flatten, **opts, &block).chomp.lines.last
end
def state(cid)