Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
74a4f27a
Commit
74a4f27a
authored
Sep 04, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buidler/docker: remove container [GH-1206] [GH-1095]
parent
2e2f59a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
builder/docker/driver_docker.go
builder/docker/driver_docker.go
+5
-1
No files found.
CHANGELOG.md
View file @
74a4f27a
...
...
@@ -32,6 +32,7 @@ BUG FIXES:
*
builder/amazon/all:
`delete_on_termination`
set to false will work.
*
builder/amazon/all: More desctriptive error messages if Amazon only
sends an error code. [GH-1189]
*
builder/docker: Remove the container during cleanup. [GH-1206]
*
builder/googlecompute: add
`disk_size`
option. [GH-1397]
*
builder/openstack: Region is not required. [GH-1418]
*
builder/parallels-iso: ISO not removed from VM after install [GH-1338]
...
...
builder/docker/driver_docker.go
View file @
74a4f27a
...
...
@@ -149,7 +149,11 @@ func (d *DockerDriver) StartContainer(config *ContainerConfig) (string, error) {
}
func
(
d
*
DockerDriver
)
StopContainer
(
id
string
)
error
{
return
exec
.
Command
(
"docker"
,
"kill"
,
id
)
.
Run
()
if
err
:=
exec
.
Command
(
"docker"
,
"kill"
,
id
)
.
Run
();
err
!=
nil
{
return
err
}
return
exec
.
Command
(
"docker"
,
"rm"
,
id
)
.
Run
()
}
func
(
d
*
DockerDriver
)
Verify
()
error
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment