Skip to content

Commit 57a1269

Browse files
committed
providers/docker: read the container ID properly
1 parent 7ccec33 commit 57a1269

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ BUG FIXES:
1515
- providers/docker: Images built using `build\_dir` will more robustly
1616
capture the final image. [GH-4598]
1717
- providers/docker: NFS synced folders now work. [GH-4344]
18+
- providers/docker: Read the created container ID more robustly.
1819
- providers/virtualbox: Show a human-friendly error if VirtualBox didn't
1920
clean up an existing VM. [GH-4681]
2021
- provisioners/docker: Search for docker binary in multiple places. [GH-4580]

plugins/providers/docker/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def create(params, **opts, &block)
5353
run_cmd += params[:extra_args] if params[:extra_args]
5454
run_cmd += [image, cmd]
5555

56-
execute(*run_cmd.flatten, **opts, &block).chomp
56+
execute(*run_cmd.flatten, **opts, &block).chomp.lines.last
5757
end
5858

5959
def state(cid)

0 commit comments

Comments
 (0)